Why out ; after command


#1

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

```

Replace this line with your code.

<do not remove the three backticks above>

#2

I don’t know if I understand your question exactly, but I’ll try to answer:

Do you mean the semicolon at the end of a line of code?

console.log("Hello, World"); // <-- there?

That’s simply to tell the interpreter that the line has ended. It reads up to here, and once it reaches the semicolon (very quickly), it runs the code.


#3

oic - cos last 4line left it out and it ran just the same - i know most
progs have this kind of thing but it just seems extra - like if i designed
it i would put a # like this in which would aut0 put console.log(" "): in
so that all you woulld hve to do it put the words in - this is long winded.
Second if I pay 25aud per month I want to have someone watching me all time
in case of mistakes - if I got to wait for blog or chat too long then i may
as well go to lynda to learn. Whatsay?


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.