Get the ascii value to the given number or character using javascriot

technical talkiess
0

 Get the ascii value to the given number or character using javascriot

javascript se diye hue number ki ascii value kaise pata karte hai.

how to find the given digit ascii value in the javascript.

string or number convert into the ascii character.

charcode function using in the javascript


<script>

let a = prompt("Enter the number which you have to want ascii number");


alert(asciinumber(a));

function asciinumber(a){

return a.charCodeAt(0);

}

</script>

Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)