JavaScript Program to check a number is a strong number or not
In this program, You will learn how to check a number is a strong number or not in JavaScript. while(condition){ //statement //increment/decrement } Example: How to check a number is…
In this program, You will learn how to check a number is a strong number or not in JavaScript. while(condition){ //statement //increment/decrement } Example: How to check a number is…
In this program, You will learn how to check a number is a perfect number or not in JavaScript. while (condition) { //statement //increment / decrement } Example: How to…
In this program, You will learn how to find factorial of a number in JavaScript. for (init; condition; increment/decrement) { // statement } Example: How to find factorial of a…
In this program, You will learn how to print the sum of the first 10 natural numbers in JavaScript. for (init; condition; increment/decrement) { // statement } Example: How to…
In this program, You will learn how to perform arithmetic operations using a switch case in JavaScript. switch(expression) { case 1: // statement break case 2: // statement break default:…
In this program, you will learn how to swap two numbers without using a third variable in JavaScript. x = x + y y = x - y x =…
In this program, you will learn how to find remainder without using the modulus operator in JavaScript. while (x >= y) { x = x - y } Example: How…
In this program, you will learn how to find a quotient without using the division operator in JavaScript. while (x >= y) { x = x - y q++ }…
In this program, you will learn how to find quotient and remainder in JavaScript. q = x / y r = x % y Example: How to find quotient and…
In this program, you will learn how to print a table of any number in JavaScript. for(initialization; condition; increment/decremnet){ //statement } Example: How to print a table of any number…