+ 2
JavaScript on HTML ?
Hi Iâm quite new to JavaScript my main code was python but I heard JavaScript is more useful in the visual preference of apps so I bought a book for beginners but it seems I need to use an HTML playground to use it. Will this effect how I right JavaScript e.g. in python I would use the âprintâ function and (according to the book) in JavaScript I would use âalertâ ... is that how you write it in JavaScript?
4 Answers
+ 1
Thank you, I realized alert does work... but it makes it look like a real alert e.g. battery on 20%
0
Start with HTML, then go on to JS.
0
You use console.log() in javascript instead of print(). Running the code with html would not affect how you write javascript other than you can affect the html and css elements with it.