Hi person who is reading this tutorial! Thank you for clicking on this
Ok! So, to make a comment all you have to do is write two slashes (
//) and put what you want to write in your comment after that!
// This is a comment! // This is another comment!
For multi-line comments, you have to put a slash and a star to start the comment and to close it you have to put a star and then the slash.
Comments don't have an output because they are just text in your code.
Ok, so if you know some Python, then you might know that to write something in the console you have to write
console.log("what you want to write").
You can also put in numbers in a
So strings are just what they sound like; strings of characters! Strings always have to be enclosed in either double quotes (
"") or single quotes (
'') but they can't be mixed like this:
'this is a string" or like this:
"this is a string'. This is an example of the right way:
"this is a string" 'this is also a string'
I wanted to go over strings because they are very important when you want to write something or sometimes give a value to something.
Some of the