Write an if statement that displays“go south”if the value in the variabletemperatureis less than 32, and displays“enjoy”otherwise

var temperature;

if (value < 32){

temperature= "go south";

}

else {

temperature= "enjoy"

}

Write an if statement to check if the value in the variable x is less than the value in the variable y.

var x, y;

if (x < y) {

{

Declare two variables named balance and rate.

var balance, rate;

Declare a variable named inventor and assign the text "Franklin" to it.

var inventor = "Franklin";

Write a JavaScript statement to determine the amount of energy released during a nuclear reaction. In other words, translate E = mc2 into JavaScript. Assume that the variables m and c already exist and each holds a value.

var E = m * c * c;

The semi-perimeter, s, of a triangle with side lengths a, b, and c is given by the formula:s= a + b + c/2

var s = (a + b + c) / 2;

Translater = 2k +6-n/3p2 into JavaScript. Assume that the variables k, n, and p already exist and each holds a value.