Posted in

1. Declaring variables

let x;
let y = 20;

let x, y = 20;

2. Assigning values to multiple variables

(posted in

Synchronous callbacks

Synchronous means the code statements execute immediately after one another in a sequential manner.

function print(number, result) {
console.log(`${number} is ${result}`);
function checkEvenOrOdd(number, callback) {

Amitav Mishra

A front end web developer who loves to write blogs on JavaScript, Angular, React, HTML, CSS etc. Find them all on

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store