+ 1

Same question but different way!

HTML: <p>x</p> I want to relate it with js and the output should be 20,where x=5

14th Sep 2020, 9:19 AM
PRAVEEN
PRAVEEN - avatar
2 Réponses
+ 4
You should learn vue / angular to perform these kinds of view-controller bindings! Both of them are very simple and great libraries.
14th Sep 2020, 9:29 AM
777
777 - avatar
+ 2
const pNode = document.querySelector("p"); let x = 5; pNode.innerHTML=x*4;
14th Sep 2020, 10:52 AM
🇮🇳Vivek🇮🇳
🇮🇳Vivek🇮🇳 - avatar