How to define sytax


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?


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


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


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


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


would print "Hi" to the console. Running


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


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