Day 70: Beginning JavaScript

Day 70

Hello. It’s been a while. Sorry I haven’t updated with you with my progress. It’s been a hell of a ride. Guess what? I finally got a certificate in Responsive Web Development from Free Code Camp. This means a lot to me. I am moving to a new session, and I promise to be more committed so help me God.

JavaScript is my next point of call, and these are the 10 lessons I learnt today.

[if !supportLists]1. [endif]While HTML and CSS control the content and styling of a page, JavaScript is used to make it interactive.

[if !supportLists]2. [endif]There are two ways to write comments in JavaScript: Using //. This is an in-line comment: You can make a multi-line comment beginning with /* and ending with */. This is a multi-line comment.

[if !supportLists]3. [endif]JavaScript provides eight different data types which are undefined, null, boolean, string, symbol, bigint, number, and object.

[if !supportLists]4. [endif]Variables allow computers to store and manipulate data in a dynamic fashion. They do this by using a "label" to point to the data rather than using the data itself. Any of the eight data types may be stored in a variable.

[if !supportLists]5. [endif]We tell JavaScript to create or declare a variable by putting the keyword var in front of it, e.g var ourName;

[if !supportLists]6. [endif]In JavaScript we end statements with semicolons.

[if !supportLists]7. [endif]In JavaScript, you can store a value in a variable with the assignment operator (=). If there are any calculations to the right of the = operator, those are performed before the value is assigned to the variable on the left of the operator.

[if !supportLists]8. [endif]After a value is assigned to a variable using the assignment operator, you can assign the value of that variable to another variable using the assignment operator.

[if !supportLists]9. [endif]It is common to initialize a variable to an initial value in the same line as it is declared.

[if !supportLists]10. [endif]A string literal, or string, is a series of zero or more characters enclosed in single or double quotes.