charAt() in JS using strings
charAt() in JS using strings
<!DOCTYPE html>
<html>
<head>
<title>Test page</title>
<script type="text/javascript">
//charAt will return the character at that particular position of the string
var a = " HEY !! THIS IS THE TASK";
var b = a.charAt(8);
console.log(b);
</script>
</head>
<body>
<h1></h1>
</body>
</html>
Comments
Post a Comment
I WOULD APPRECIATE IF YOU LEAVE A COMMENT OR YOUR FEEDBACK HERE !!!