JavaScript is a cool programming language that is commonly used in websites and sometimes applications.
Ever heard of a semicolon? A semicolon (;) is whats commonly used in JavaScript.
There is one exact lookalike to the semicolon we all love.
Its the greek question mark. Now lets get to the coding part.
Here is an example of JavaScript code, This of course prints Hello World to the console.
console.log("Hello World");
This is valid and does not contain any syntax errors.
Heres an example but with the greek question mark:
console.log("Hello World");
This is invalid because it contains a Syntax Error at the so called "semicolon".
- Replace over half of semicolons in your friends JS file
- Ask a friend why the code isn't working then proceed to uploading the JS file
- Submit a StackOverflow post and cause a teeny bit of stress before your banned off the platform