Lab Performance 3

Basic JavaScript Programs
WE
Lab Performance 1
Title: All basic html code use
Student

Md. Sadat Alam Protik

Student ID: 0242220005101858
Section: 63_M
Program: BSc in CSE
Department: Computer Science
Blood: A+
Valid Thru
Signature QR code

1. Write a program to find the factorial of a number.


2. Write a program to find the largest among three numbers.


3. Write a program to check whether a number is prime or not.


4. Write a program to find the sum of all numbers from 1 to n.


5. Write a program to reverse a number (e.g., 123 → 321).


6. Write a program to find the power of a number (without using Math.pow).

Table Task

r1c1 r1c3 r1c4 r1c5
r2c1 r2c3 r3c4 r3c6
r4c1 r4c2 r4c4 r4c5
r5c1 r5c3 r5c5 r6c4