JavaScript Tasks (Multiplication, Half of the sum, Find the perimeter and area, BMI (Body Mass Index), older than 16 years)
Task 1: Multiplication Objective: Display the result of multiplying two numbers. Code Solution: const a = 3; const b = 6; const multiplicationResult = a * b; console.log(“Multiplication Result:”, multiplicationResult); Explanation: This code multiplies a and b, then prints the result. Task 2: Half of the Sum Objective: Display half of the sum of two […]