I tried encapsulating that code in the script tag in html using two different ide (bracket and dream weaver) but it couldn't run | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I tried encapsulating that code in the script tag in html using two different ide (bracket and dream weaver) but it couldn't run

https://code.sololearn.com/WqsPXUnMbPC0/?ref=app

28th Jun 2017, 11:11 AM
Sammy
Sammy - avatar
2 Answers
+ 4
it runs but it logs the message on the console not the html page. u can replace console.log() with document.write()
28th Jun 2017, 11:13 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 1
yh when I replaced it,there still wasn't no change.
28th Jun 2017, 12:24 PM
Sammy
Sammy - avatar