Learnerslesson
   JAVA   
  SPRING  
  SPRINGBOOT  
 HIBERNATE 
  HADOOP  
   HIVE   
   ALGORITHMS   
   PYTHON   
   GO   
   KOTLIN   
   C#   
   RUBY   
   C++   
   HTML   
   CSS   
   JAVA SCRIPT   
   JQUERY   




fromCharCode() - FUNCTION


fromCharCode() Function


The fromCharCode(..) function is used to return the letter based on the ASCII code passed to it.


Say, if we want to know the letter/character for the ASCII code 114.


Example :



<html>
<body>  
<script>
	
	var pos = String.fromCharCode(114)
	document.write("The Letter for ASCII code 114 is : ", pos)
    
</script>      
</body>
</html>


Output :



  The Letter for ASCII code 114 is : r