JavaScript Program to find the sum of even digits of a number

In this program, You will learn how to find the sum of even digits of a number in JavaScript. while (Condition) { Statement Increment/Decrement } Example: How to find the…

JavaScript Program to find the sum of digits of a number

In this program, You will learn how to find the sum of digits of a number in JavaScript. while (Condition) { Statement Increment/Decrement } Example: How to find the sum…

JavaScript Program to print first n odd numbers in descending order

In this program, You will learn how to print first n odd numbers in descending order in JavaScript. for(init; condition; incr/decr){ Statement; } Example: How to print first n odd…

JavaScript Program to check the square root of a number is prime or not

In this program, You will learn how to check the square root of a number is prime or not in JavaScript. while (Condition) { Statement Increment/Decrement } Example: How to…

JavaScript Program to find the sum of prime numbers between 1 to n

In this program, You will learn how to find the sum of prime numbers between 1 to n in JavaScript. while(Condition){ //Statement Increment/Decrement } Example: How to find the sum…

JavaScript Program to print all prime numbers between 1 to n

In this program, You will learn how to print all prime numbers between 1 to n in JavaScript. while(Condition){ //Statement Increment/Decrement } Example: How to print all prime numbers between…

JavaScript Program to check a number is prime or not

In this program, You will learn how to check a number is prime or not in JavaScript. for(init; condition; increment/decrement){ //Statement } Example: How to check a number is prime…

JavaScript Program to check a number is Armstrong or not

In this program, You will learn how to check a number is Armstrong or not in JavaScript. while(condition){ //statement //Increment/Decrement } Example: How to check a number is Armstrong or…

JavaScript Program to check a number is palindrome or not

In this program, You will learn how to check a number is palindrome or not in JavaScript. while(condition){ //statement //Increment/Decrement } Example: How to check a number is palindrome or…

JavaScript Program to reverse a number

In this program, You will learn how to reverse a number in JavaScript. while(condition){ //statement increment/decrement } Example: How to reverse a number in JavaScript let n = parseInt(prompt("Enter a…