javascript

How to convert objects to string in JavaScript

Different ways in JavaScript to convert objects to string. Learn how to use JSON.stringify and how to print objects as string to the console using console.log.

Read
javascript

How to remove object properties in JavaScript

How to remove object properties in JavaScript with examples. We will learn how to use the delete property or object destruction to remove unwanted object properties.

Read
javascript

3 ways to check if an object is string or not in JavaScript

JavaScript program to check if an object is string or not. We will learn 3 different ways to check that. We will learn how to use typeof, instanceof, Object.prototype.toString.call and with lodash.

Read
javascript

How to check if a number is NaN in JavaScript

JavaScript program to check if a number is NaN or not. We will use the method Number.isNaN to check if a number is NaN. This post will show you how to use this method with examples.

Read
java

Java program to check if a number is Kaprekar number or not

Java program to check if a number is Kaprekar number or not. We will also write a program to find all Kaprekar numbers in between 1 to 10000.

Read
c

C program to check if a number is a Kaprekar number or not

C program to check if a number is Kaprekar number or not. The program will take a number as input from the user and print a message if it is Kaprekar or not.

Read
javascript

JavaScript parseInt function example to convert a string to integer

Learn how to convert a string to integer in JavaScript by using the parseInt function. parseInt function takes a string and the radix value as its parameters and returns the parsed integer value.

Read
javascript

JavaScript parseFloat method explanation with examples

Learn how to use parseFloat method in JavaScript with examples. The parseFloat method is used to convert a string to number in JavaScript. We will learn how to use this method with examples.

Read
javascript

How to replace an item in an Array in JavaScript

Learn how to replace an item in an array in JavaScript with example. We will learn 3 different ways to do that, by using the index of the element, by using indexOf, by using splice().

Read
javascript

JavaScript filter method explanation with example

JavaScript filter method can be used to create a new array by using a predicate. This post will show you how to use this method with different examples.

Read