2 hours ago · Tech · 0 comments

It's Monday, I am awake, I have played Animal Crossing, it is sunny outside, and my brand new couch is arriving today. Everything is awesome, let's learn about JavaScript Operators. JavaScript OperatorsWe get the basics of operators. = assigns values to things + adds values to things * multiplies values in things > compares values (as does <, <=, and >=) And then it goes into the types of operators. JavaScript Arithmetic OperatorsThis is just maths again. (Do y'all like how I'm calling it "maths"? I totally deserved that British citizenship.) Most of them are pretty straightforward – +, -, *, /, but then I have to remember these four: **: exponents %: division remainders/modulo ++: incremental --: decremental The ++ was what got me with my loop in that awful Mammoth JavaScript course, so I have to remember that it's ++ rather than + 1. JavaScript String AdditionI know all about concatenation thanks to some deep Excel malarkey I used to do, but this is also quite nice: let…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.