for element in string js
for (var i = 0; i < str.length; i++) {
alert(str.charAt(i));
}
for element in string js
for (var i = 0; i < str.length; i++) {
alert(str.charAt(i));
}
string in js
let str1 = 'hello'
let str2 = 'hello'
let strObj1 = new String('hello');
let strObj2 = new String('hello');
console.log(str1 === str2) // true
console.log(str1 == strObj1) // true
console.log(str1 === strObj1) // false
console.log(strObj1 == strObj2) // false
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us