It's informative and straight to point.. Also if possible can you change examples for "What is for...in?" as
array = [4, "some text", true]; for (let i in array) { // in for..in 'i' returns index console.log(i); // 0, 1, 2 console.log(typeof i); // string, string, string console.log(array[i]); // 4, some text, true } for (const el of array) { // in for..of 'el' returns element console.log(el); // 4, some text, true console.log(typeof el); // number, string, boolean }
Anyways..thanks for the information
Thanks for the extra info!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It's informative and straight to point..
Also if possible can you change examples for "What is for...in?" as
Anyways..thanks for the information
Thanks for the extra info!