Javascript - Write program to Display the result of 10 / 5, using two variables x and y.

Requirements

Write program to Display the result of 10 / 5, using two variables x and y.

Hint

You can define the two variables as

var x;
var y;

Use the division operator (/).

Demo

var x = 10;
var y = 5;
console.log( x / y );

Result

Related Exercise