+ 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?

27th Dec 2020, 7:05 PM
PartyChazy
PartyChazy - avatar
4 Respostas
+ 1
Thank you, I realized alert does work... but it makes it look like a real alert e.g. battery on 20%
27th Dec 2020, 8:49 PM
PartyChazy
PartyChazy - avatar
0
Start with HTML, then go on to JS.
27th Dec 2020, 8:14 PM
Sri
Sri - avatar
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.
27th Dec 2020, 8:14 PM
Ri He
Ri He - avatar