My journey into coding has been an on-again, off-again type of relationship but I started taking it seriously in March when the lockdown and WFH due to the Coronavirus pandemic kicked in fully.
I started off with what can arguably be considered the table stakes (for frontend development) - HTML and CSS - using Codecademy, FreeCodeCamp and YouTube.
Also, I put together a bunch of music for you to enjoy while you read.
The language now supports the:
Ability to create business applications on the web Ability to create any kind of utility, security or data application Ability to communicate with Browser Application Programming Interfaces (APIs) Ability to communicate with third-party APIs Ability to rapidly build sites and native applications using third-party frameworks and libraries
<p> I am ready </p>
🔴 Commenting Code
This is important to avoid any form of ambiguity in your code when another developer picks it up. Any kind of complexity, trickiness or indeed anything that could be confusing should be commented on in your code.
Single line comment can be added using a double slash.
// single line comment
A multiple line comment can be added using a slash and star before the comment and a star and slash after the comment.
/* multiple line comment */
🔴 Declaring Variables
let total = 149.99;
let product = 'hiking boots';
let discounted = true;
Rules For Naming Variables
A variable name (also known as identifier) can begin with "_", "$" , "letter" and subsequent characters can be digits (0–9)
let _2total = 149.99;
let $to_tal = 149.99;
let total99 = 149.99;
let 5total = 149.99;
While the let keyword is used to declare variables with dynamic values, const keyword is used to declare variables whose values are static (i.e the value of a constant can't be changed through reassignment, and it can't be redeclared).
An advantage of using const is that it helps guide other developers looking at your code in the future giving them a clue that something is not suppose to change.
const price = 149.99;
price = 50.99;
// expected output: TypeError: invalid assignment to const `number'
const price = 149.99;
// expected output: 42
Feel free to drop a comment for me if you spot anything off and will like to point me in the right direction. I'll appreciate that.
Thanks to Bisi and Seun for helping out with the edits.