You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log(Element**2); // square will be printed
})
// when we are working with DOM in web development we grt the html collection we need to convert it in array and in that to access that we need 'array.from'
//Array.from
console.log("Array.from used to convert html collection into array or we can use like this : ")
let name = "Pratham";
let arr_name = Array.from(name);
console.log(arr_name);
// for..of
console.log("For .. of : loop");
for(let i of num){
console.log(i); // num array elements accessed thgrough this