How can I add variables in my javascript code while iam running the code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I add variables in my javascript code while iam running the code

Make button which Says ''add'' that saves my input

19th Jul 2022, 8:10 AM
Hasan Mohamood
2 Answers
19th Jul 2022, 8:21 AM
Ausgrindtube
Ausgrindtube - avatar
0
You need to listen for click of button and than store input value. Than inside listener you can create variable or just set value to already created variable. https://code.sololearn.com/WTToHBmISFU9/?ref=app
19th Jul 2022, 8:55 AM
PanicS
PanicS - avatar