4 6 1 operators and operands c2 b6

Solutions on MaxInterview for 4 6 1 operators and operands c2 b6 by the best coders in the world

showing results for - "4 6 1 operators and operands c2 b6"
Hana
10 Sep 2019
1console.log(2 + 3);
2console.log(2 - 3);
3console.log(2 * 3);
4console.log(2 ** 3);
5console.log(3 ** 2);
6
7//5
8//-1
9//6
10//8
11//9
12
13/*The symbols + and -, and the use of parentheses for grouping, mean 
14in JavaScript what they mean in mathematics. The asterisk (*) is the
15symbol for multiplication, and ** is the symbol for exponentiation. 
16Addition, subtraction, multiplication, and exponentiation all do what 
17you expect.*/
Anna
13 Oct 2017
1/*When a variable name appears in the place of an operand, it is 
2replaced with the value that it refers to before the operation is 
3performed. For example, suppose that we wanted to convert 645 minutes 
4into hours. Division is denoted by the operator /.  */
5
6let minutes = 645;
7let hours = minutes / 60;
8console.log(hours);
9
10//10.75