JavaScript ARITHMETIC OPERATORS in 8 minutes! ➕

Published: 15 October 2023
on channel: Bro Code
38,304
817

00:00:00 arithmetic operators
00:03:21 augmented assignment operators
00:04:54 increment/decrement operators
00:05:23 operator precedence
00:07:51 conclusion

// arithmetic operators = operands (values, variables, etc.)
// operators (+ - * /)
// ex. 11 = x + 5;

let students = 30;

//students = students + 1;
//students = students - 1;
//students = students * 2;
//students = students / 2;
//students = students ** 2;
//let extraStudents = students % 3;

console.log(students);

//students += 1;
//students -= 1;
//students *= 2;
//students /= 2;
//students **= 2;
//students %= 2;

//students++;
//students--;

/*
operator precedence
1. parenthesis ()
2. exponents
3. multiplication & division & modulo
4. addition & subtraction
*/


Watch video JavaScript ARITHMETIC OPERATORS in 8 minutes! ➕ online without registration, duration hours minute second in high quality. This video was added by user Bro Code 15 October 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 38,30 once and liked it 81 people.