dev-2024-05-20-Printing a value in the console | 10:06:21 PM

Printing a value in JS:

console.log(5);

The syntax above prints the number 5 in the console.

Link to original

dev-2024-05-20-adding a comment in JS | 10:22:19 PM

Putting comments on JavaScript:

We can put comments using the following syntax:

  • //{{comment-here}} or
/*Your comments here!*/

Notice how the above syntax for multi-line comments looks like comments for CSS!

Link to original

dev-2024-05-23-Primitive Data Types | 10:36:29 PM

Link to original

dev-2024-05-27-Adding a string to another string: concatenation

Adding a string to another string: concatenation

We can concatente strings using the following syntax:

console.log('hey' + 'there');

Link to original