Last login: Wed Jan 19 09:43:35 on ttys002 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:10:02:~> ssh morrison@cs.ncssm.edu morrison@cs.ncssm.edu's password: Last login: Wed Jan 19 09:23:28 2022 from 172.31.248.160 CSWed Jan 19:10:03:~> node > true true > false false > !true false > !false true > true or false true or false ^^ SyntaxError: Unexpected identifier > true || true true > true || false true > false || true true > false || false false > true && true true > true && false false > false && false false > false && true false > true ^ true 0 > true ^ false 1 > false ^ true 1 > false ^ false 0 > Boolean(true ^ true) false > Number("3423") 3423 > "" + 2332 '2332' > "" + true 'true' > // relational opeators >= <= < > undefined > 5 == "5" true > 5 === "5" false > 5 === Number("5") true > // === isequalto !== negation of === undefined > //don't use ==. undefined > // Warner warning: do not compare items of different types undefined > //using relatoinal operators. undefined > 3 < "a" false > "3" < "a" true > 4*4 < 5*3 false > 5 - 3 < 2 + 7 true > let q = 5 - 3 < 2 + 7 undefined > let r = (q = 6) undefined > r 6 > q 6 > let c = 14 undefined > c 14 > 5 < c < 20 true > 5 <= c <= 20 true > 5 <= c && c <= 20 true > d ReferenceError: d is not defined > c 14 > c += 5; 19 > c 19 > //compound assignment undefined > // op is infix binary, x op= y is x = x op y undefined > c 19 > c += 2*5 29 > c += 2 + 3 34 > c += 2 * 3 40 > c - 1 39 > c = 1 1 > c *= 2 + 5 7 > c = 1 1 > c = c*(2 + 5) 7 > c = 1 1 > c = c*2 + 5 7 > CSWed Jan 19:10:30:~>