0

How do I start and end JavaScript programs?

New JavaScript coder here. I’m trying to make my very 1st program. But I don’t know what to type for the start & end of my JavaScript program. Can anyone give me the answer?

8th Jan 2020, 5:24 PM
Andrew
Andrew - avatar
2 Respostas
+ 2
JavaScript doesn't use an entry or exit function. It reads all your variables, and executes your code top to bottom using a JIT (Just in time) compiler. Write anything that you know, even if it's just alert("Hello World!")
8th Jan 2020, 5:31 PM
Daniel C
Daniel C - avatar