Posts

Showing posts from October, 2022

JS-Assignment-3

1. Take a number array and find the sum of elements of it. 2. Take a number array and print even numbers of it 3. Take a number array and print prime  numbers of it

JS-Assignment-2

1. Write a program to find big number of given two numbers 2. Write a program to find big one in given three numbers 3. Write a function to find the factors of a given number 4. Write a function to check given number is prime or not      (Hint: Prime number have only two factors) 5. Write a function to print even factors of given number 6. Write a function to receive a number as arg and return sum of its            digits          INPUT : 1234           OUTPUT : 10 (1+2+3+4)

JS-Assignment-1

 1. Write a program to implement Arithmetic operations 2. Write a program to test unary increment & decrement operators       (Note your observations in comments) 3. Write a program to verify comparison operators 4. Write a program to find difference between == and === operators        (Note your observations in comments)