Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

4.6.1. Operators and Operands¶

/*When a variable name appears in the place of an operand, it is 
replaced with the value that it refers to before the operation is 
performed. For example, suppose that we wanted to convert 645 minutes 
into hours. Division is denoted by the operator /.  */

let minutes = 645;
let hours = minutes / 60;
console.log(hours);

//10.75
Source by education.launchcode.org #
 
PREVIOUS NEXT
Tagged: #Operators
ADD COMMENT
Topic
Name
5+9 =