+ 3

How can I use HTML elements in JS?

https://code.sololearn.com/WcSKmG6AOn20/?ref=app In this code I use div element but it can only use on strings if I use it to the var's a,b,c,d,e,f,g,h values it can't work and shows error so how can I use it on var keyword's values????? Please answer me.

20th May 2019, 10:08 AM
jay goti
jay goti - avatar
3 Antworten
+ 7
Search on google about "document.createElement()" Using that , you can add even css using the js. Check this: JS only. https://code.sololearn.com/WUDkravlUb7V/?ref=app
20th May 2019, 10:13 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 4
thanks
20th May 2019, 10:14 AM
jay goti
jay goti - avatar
20th May 2019, 10:53 AM
Gordon
Gordon - avatar