JavaScript Boolean, Boolean() | Basics
JavaScript has a Boolean data type and a boolean variable value is one that can either be TRUE or FALSE. The boolean function returns the… Read More »JavaScript Boolean, Boolean() | Basics
JavaScript has a Boolean data type and a boolean variable value is one that can either be TRUE or FALSE. The boolean function returns the… Read More »JavaScript Boolean, Boolean() | Basics
JavaScript is a prototype-oriented, not an object-oriented programing 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 from outside the block. Variables declared inside a { }… 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 decision maker program. The if statement executes a statement if a specified condition is truthy. If the condition… 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
Just use the literal values, true or false to declare Boolean in JavaScript. You should never create a boolean using the Boolean constructor function because… Read More »Declare Boolean in JavaScript | Basic code
Using JavaScript optional chaining operator (?.) can get the value of a property located deep objects (Nested Object) without having to check that if each… Read More »JavaScript Optional Chaining | Use and Examples