## How to remove only the fractional part of a number in JavaScript

JavaScript program to remove fractional part of a number : JavaScript provides one inbuilt method to remove the fractional part of a number. If you have one floating-point number like 1.24 and you need only the integer part i.e. 1, you can use this method. In this tutorial, I will Read more…

## How to find the sign of a number in JavaScript

Find the sign of a number in JavaScript : Finding the sign of a number is pretty easy in JavaScript. JavaScript provides us one inbuilt method to do that. Just call that method and it will tell you the sign. You don’t have to write any separate methods for that. Read more…

## JavaScript logarithmic functions

JavaScript logarithmic functions : JavaScript Math is a built-in object that has different mathematical constants and functions. It has a couple of different functions and constants. In this post, I will show you all the logarithmic functions with examples.   Logarithmic functions defined in Math : Following are the logarithmic Read more…

## JavaScript program to find if a number is prime or not

What is a prime number : A number is called prime if that number is divisible by 1 and the number itself. For example, 2, 3, 5, 7 etc. are prime numbers. In this post, I will show you how to check if a number is prime or not in Read more…

## JavaScript program to check if a number is multiple of 3 without using modulo

Introduction : In this post, I will show you three different ways to check if a number is divisible by 3 or not without using the modulo % operator. For each example, we will use one for loop to iterate from 0 to 30 and print out the numbers those Read more…

## Different ways in JavaScript to check for palindrome

Introduction : A palindrome is a sequence of characters that is the same as backward and forward. For example, rotor, level are palindrome strings. In this post, I will show you different ways to find if a string is a palindrome or not in JavaScript. We will use different palindrome Read more…

## JavaScript program to find years with first January Sunday

Introduction : In this JavaScript tutorial, we will learn how to find out if the first January is Sunday or not between two years. This is a beginner level JavaScript problem. You will learn how to check if a day is Sunday or not using Date class in JavaScript and Read more…

## Find out the largest Date in a JavaScript array

Introduction : Our problem is to find out the largest Date in a JavaScript array of dates. We will create one array of Date objects and then find out the largest among them. I will show you different ways to solve this problem. Go through the examples and drop a Read more…

## JavaScript program to find out the largest of three numbers

Introduction : We can use different ways to find the largest among the three numbers in JavaScript. We can either use extra variables to find the largest or we can directly find without using any extra variables. In this blog post, I will show you different ways to find out Read more…

## JavaScript program to find the element with highest occurrence in an array

Introduction : In this tutorial, we will learn how to find the highest occurrence elements from an array in JavaScript. I will show you three different ways to solve this problem. Go through the examples and drop one comment below if you have any queries.   Problem statement : One Read more…