Pilcrow Records

Scripter Javascript Tutorial

javascriptmusiclogicscripterbookexcerpttutorial

21 Operators and Math

22 Assignment

MDN: Expressions and Operators: Assignment

The Assignment Operator “=” assigns a value to a variable. This has already been shown extensively:

const CHROMATIC_SCALE = 12;
var tonic = 60;