Advanced JavaScript - Module 01 - Part 02 - Add array elements dynamically

preview_player
Показать описание
How to add elements to an array using JavaScript (dynamically) and display all the elements in a div
Рекомендации по теме
Комментарии
Автор

Nice teaching with practical example. i am feeling good. Can you please tell me how to achieve this - once item added, let the input field be blank and focus ? Can you please add that piece of code ...? Thanks

bhagabatsahoo
Автор

This is great. Can you kindly zoom as you type (in future). Thanks

glenc
Автор

i'm using Visual Studio Code: in this video, i did everything in the same you did for learning purpose though i have separated it into two different files as "part02.js" and "part02.html" and linked them together using "<script src="part02.js"></script>"
but when run it with Chrome and inserted an item into the text box shown, i only see this output:
"No of items added: 1"

the other line which is " item 1 of 1 is ...." is not shown !

Note: i even repeatedly watched this video but failed to find where i'm having that error.

Any help?

عبدالقادرعبدالرحمنعبدالله
Автор

I updated a few things based on what I'm learning but it's very close to what you see in the video (and it works).

annaed
visit shbcf.ru