JavaScript Program to Demonstrate Use of fromCharCode() Method

Write a JavaScript program to demonstrate use of fromCharCode() method.



Source Code
<html>
<head>
	<title>fromCharCode method</title>
</head>
<body>
	<script>
		var txt = String.fromCharCode(82, 65, 72, 85, 76);
		document.write(txt);
	</script>
</body>
</html>
Output





"Coding Hub - Learn to code" app now available on Google Play Store