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
Post a Comment