#webdev
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....
Math is an object in JavaScript that provides mathematical functions and constants. There is no need to create an instance of the object we can...
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...