Answers for "js string get char at index"

12

javascript get first character of string

var str="Hello Folks!"
var firstStringChar = str.charAt(0); //H
Posted by: Guest on August-01-2019
1

find character at index in javascript

var string = "Hello, World!";
console.log( string.charAt(4) ); // "o"
Posted by: Guest on September-24-2021
1

find character at index in javascript

var string = "Hello, World!";
console.log( string[4] ); // "o"
Posted by: Guest on September-24-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language