How to define sytax


#1

While I was coding I entered a code and it told me that something was wrong with my syntax. I don't understand what. I was coding with JavaScript. Any advice?


#2

what exactly were you coding.? can you put it here


#3

I am also having trouble with JavaScript. Codecademy is not explaining what the syntax is, what different things do (example: console.log).


#4

Syntax is practically your written code. How you write it depends on what you are doing.


#5

@dronan20 console.log is a command you use to log something to the console (the interpreter's screen). So running

console.log("Hi")

would print "Hi" to the console. Running

console.log(a)

would print the value of the variable a to the console.


#6

I figured out how to fix it, thanks for the tips!