string practice test

 how to find the length of string

let a = "navjotsingh"

let b = a.length

console.log(`the length of ${a} is ${b}`)


===========================================================================


let a = "navjotsingh"

let b = a.length

console.log(a[2])


=========================================================================


string method



Comments

Popular posts from this blog

practice test of Arithmetic Operations: