#100daysofcode
Read more stories on Hashnode
Articles with this tag
for loop: Single for loop: Below is the syntax of a for loop with the example of skipping the even numbers and printing the odd numbers between 1 to...
Function declaration and accessing: In javascript, we can declare and access the function in the following way function sayMyName() { ...
Declaration of the object: In JavaScript, we can create an object by using curly braces {} and then add key-value pairs as items of the object....
Date object in js The Date object in JavaScript is used for working with dates and times. The Date object represents a specific moment in time,...
Array declaration Method1: const myArr = [1,2,3,4,5]; Method2: const myArr2 = new Array(1,2,3,4) Accessing array elements and array...
Strings in Javascript String declaration: In JavaScript, strings can be declared and initialized using single quotes (''), double quotes (""), or...