Last login: Wed Jan 19 08:38:27 on ttys006 The default interactive shell is now zsh. To update your account to use zsh, please run `chsh -s /bin/zsh`. For more details, please visit https://support.apple.com/kb/HT208050. MAC:Wed Jan 19:09:23:~> ssh morrison@cs.ncssm.edu morrison@cs.ncssm.edu's password: Permission denied, please try again. morrison@cs.ncssm.edu's password: Last failed login: Wed Jan 19 09:23:24 EST 2022 from 172.31.248.160 on ssh:notty There was 1 failed login attempt since the last successful login. Last login: Tue Jan 18 11:17:43 2022 from 172.31.248.160 CSWed Jan 19:09:23:~> node > x = 5 5 > typeof x 'number' > typeof 5 'number' > let y = 5; undefined > x*y 25 > //REPL read evaluate print loop undefined > // Python, Java, Ruby have REPLs undefined > // PEMDAS works for numbers undefined > 3**4**2 43046721 > 3**(4**2) 43046721 > Math.sqrt(5) 2.23606797749979 > Math.sin(0) 0 > Math.sin(90) 0.8939966636005579 > Math.sin(Math.PI/2) 1 > Math.PI/2 = 3 repl:1 Math.PI/2 = 3 ^^^^^^^^^ ReferenceError: Invalid left-hand side in assignment at Object.createScript (vm.js:80:10) at REPLServer.defaultEval (repl.js:197:21) at bound (domain.js:280:14) at REPLServer.runBound [as eval] (domain.js:293:12) at REPLServer.onLine (repl.js:493:10) at REPLServer.emit (events.js:164:20) at REPLServer.Interface._onLine (readline.js:287:10) at REPLServer.Interface._line (readline.js:642:8) at REPLServer.Interface._ttyWrite (readline.js:922:14) at REPLServer.self._ttyWrite (repl.js:562:7) > Math.PI = 3 3 > Math.PI 3.141592653589793 > let a = 3; //block-scope assignment undefined > var a = 5; //function scope assignment (not preferred) SyntaxError: Identifier 'a' has already been declared > var b = 5; //function scope assignment (not preferred) undefined > const C = 4.57; undefined > C 4.57 > C = 17; TypeError: Assignment to constant variable. > CSWed Jan 19:09:42:~>