Saurabh Jaiswal has Published 45 Articles

How null is converted to Boolean in JavaScript?

Saurabh Jaiswal

Saurabh Jaiswal

Updated on 11-Aug-2022 12:28:54

4K+ Views

In JavaScript null is a predefined keyword that represents an empty value or unknown value of no value. The data type of null is an object. In this article, we will learn how to convert null into Boolean using multiple approaches which are following. Using the Boolean function Using ... Read More

How is NaN converted to String in JavaScript?

Saurabh Jaiswal

Saurabh Jaiswal

Updated on 11-Aug-2022 12:17:10

2K+ Views

In this tutorial, we will learn how to convert NaN to String. NaN in JavaScript means Not a Number, whose type is Number but actually, it is not a number. To Convert, the NaN to a String we use Multiple methods some of which are discussed below. Using the ... Read More

How is JavaScript an untyped language?

Saurabh Jaiswal

Saurabh Jaiswal

Updated on 11-Aug-2022 11:46:09

649 Views

JavaScript is an untyped language because in JavaScript the variables can hold any data type meaning that JavaScript does not have a type declaration and when the variable is created we do not need to specify any data type unlike other programming languages like Java, C#, C++, etc. which needs ... Read More

How does the “this” keyword work in JavaScript?

Saurabh Jaiswal

Saurabh Jaiswal

Updated on 11-Aug-2022 11:42:16

189 Views

If you came across the languages like Java, C#, PHP, etc. you must hear about the this keyword, In JavaScript, it works a little differently in comparison to other languages. In this article, we will discuss the this keyword and how to use it in different contexts, and what outcome ... Read More

How can I remove the (//) blocks; tags inside a script element in Javascript?

Saurabh Jaiswal

Saurabh Jaiswal

Updated on 11-Aug-2022 11:30:45

468 Views

CDATA, the short form of Character Data is a block of code that has been written to prevent parsing by the parser. Sometimes our data includes predefined characters like “ Syntax str.replace("regex", "") Here str is the string from which you want to remove the CDATA, regex is the regular ... Read More

Advertisements