JavaScript empty statement | Basics
JavaScript empty statement is used to provide no statement, although the JavaScript syntax would expect one. The empty statement is a semicolon (;) indicating that… Read More »JavaScript empty statement | Basics
JavaScript empty statement is used to provide no statement, although the JavaScript syntax would expect one. The empty statement is a semicolon (;) indicating that… Read More »JavaScript empty statement | Basics
You can use the Map() constructor to map initialize with values in JavaScript. You have to pass arrays of key-value pairs, where the first element… Read More »JavaScript map initialize with values | Code
JavaScript has a Boolean data type and a Boolean variable value can be TRUE or FALSE. The boolean function returns the boolean value of a… Read More »JavaScript Boolean, Boolean() | Basics
JavaScript is a prototype-oriented, not an object-oriented programming language. So JavaScript doesn’t have an abstract class concept. If you would like a class that cannot… Read More »JavaScript abstract class | Basics
A JavaScript block-scoped means that the variable defined within a block will not be accessible outside the block. Variables declared inside a { } block… Read More »Block scope JavaScript | Basics
JavaScript Number is a primitive data type that stores numeric values. In JavaScript don’t need to declare for integer or floating values using int, float,… Read More »JavaScript Number Object | Basics
JavaScript string holds primitive type values which is a sequence of characters. JavaScript treats primitive values as objects when executing methods and properties. Strings can… Read More »JavaScript string Object | Basics
Use Use instanceof for custom types and use typeof for simple and complex built-in types, this is the main difference between typeof and instanceof in… Read More »What is the difference between typeof and instanceof?
Using JavaScript if else statement you can make a decision-maker program. The if statement executes a statement if a specified condition is truthy. If the… Read More »JavaScript if else statement | Basic code
JavaScript NaN is the return value from operations that have an undefined numerical result. NaN is an error value that means not a number. Below… Read More »How to avoid NaN in JavaScript | Basic code