Johnder Perez

Step 1 of 6

Binary, hex and Boolean logic


Computers only store on/off values (bits). Group 8 bits and you get a byte, enough for a number from 0 to 255. Hexadecimal (like #FF5733 in a color) is just a compact way to write bytes. Boolean logic (AND, OR, NOT) is how every if-statement and permission check eventually gets decided.

Why it matters when you build with AI: When an AI writes if (user.isAdmin || isOwner && canEdit), the order those operators are evaluated in decides who can edit your data. Knowing Boolean logic lets you catch that.

Quick check

What is 255 in hexadecimal?

← Track overview Next: The CPU and the execution cycle →