May 16, 2023
Program to use Division Operator JavaScript Language
let x = 15;
let y = 3;
let z;
z = x / y;
console.log("z = ", z);
Output
z = 5
Steps Description
- Declare three variables
x, y
andz
- Initialize both variables with value of 15 and 3 respectively
x=15, y=3
- Assign
z
variable with Assignment Operators (=
) with the divides/भाग value of variablesx
andy
x, y
variables की value को (/
) Division Operators ki सहयता सेx/y
numbers को divides/भाग किया गया हैंconsole.log
inbuilt function की मदद्द सेz
variable की value को display किया गया हैं
by : Suhel Akhtar
Quick Summary:
Division Operator JavaScript Program