Advanced JavaScript - Module 01 - Part 03 - Various types of array declarations and initializations

preview_player
Показать описание
How to declare and initialize JavaScript arrays in various ways
Рекомендации по теме
Комментарии
Автор

Friend it is not needed to remove element with while loop(6:30) JUST use .innetHTML and it will remove all previous elements and sets new elements in single command

sevdamurat
Автор

@Tech CBT referring to the line "onClick = 'displayArray(ar1)' ", how can we send a parameter from html layer to java script layer. Pls explain

vasudev
Автор

Which method is preferred for declaration and initialization of an array among the two?

var a=Array("a", "b", "c", "d");

or

var d=["a", "b", "c", "d"];

siddhartharao
Автор

hello sir, please increase font size to your code editor. There is the problem to see.!

sunnyahmed