Unit 3 Lesson 1

bag > apple

Mosh explanation: “Cos when we sort this 2 words bag comes after, so it’s considered greater.”
Sort where? By alphabet?

Yeah. Behind the scenes, the computer sees the letter “a” as some number like 97, and “b” which comes after in the alphabet would be 98. c would be 99 and so on…

So b > a.

Here’s what it actually looks like: http://www.asciitable.com/

Hope this makes sense!

1 Like