V.Vidhya Logo

V.Vidhya

Fundamentals


Q1.

Create a variable named age, give your age as its value. Now inside of a console.log(), add 3.5 to your age.


Q2.

With console.log(), inside the parentheses (), take the value of current year and subtract it by 1969.


Q3.

With console.log(), inside the parentheses divide 65 by 240.


Q4.

With console.log(), inside the parentheses multiply 0.2708 with 100.


Q5.

What will be the value of age after this code runs?

You have to predict the output yourself without running/executing the code.

let age = 23;
age + 2;   // after 2 years

Q6.

What will be the value of avg after this code runs?

You have to predict the output yourself without running/executing the code.

let hindi = 80;
let eng = 80;
let math = 80;
let avg = (hindi + eng + math) / 3;

Q7.

Write a program to convert a temperature given in Kelvin unit to Celsius and then Fahrenheit.

These are the standard formulas for the temperature conversion between different units.


Prev Post
Solutions
Next Post
Basic Operators