Day 14: ASCII Value of a character of 100DaysCodingChallenge
Hello all,
I have started the 100 days of coding challenge to improve my programming skills..
Today is the Day14 of 100DaysCodingChallenge for
ASCII Value of a character taken input by the user.
Code :
let a = prompt("Enter a character: ");// convert into ASCII value
let b = a.charCodeAt(0);
console.log(`The ASCII value is: ${b}`);Output :

Comments
Post a Comment