Monday, 6 February 2017

Javascript function to print the Unicode of the character

The below script displays the Unicode of the given string using JavaScript. Here using charCodeAt() built in function to process each letter of text.

<!DOCTYPE html>
function myFun(){
var str = "abcd";
var len = str.length;
var str2 = str.charCodeAt(i);
<button onclick="myFun()">Click Here</button>

Try Output Here :

No comments:
Write comments

Featured post

List of Universities in Karnataka offering M.Sc Computer Science

The post-graduate programme in Computer Science (M.Sc Computer Science) contains two academic years duration and having a four semesters....

Popular Posts

Copyright @ 2011-2016