What Is Endianness?
What is endianness?
Answer out loud in under a minute: a definition, one concrete example, and one pitfall or trade-off.
Hints
Hint 1
Define big- and little-endian with one four-byte example, then say where it shows up in JavaScript.
Solution
Show the approach
Answer
The byte order of multi-byte values. Big-endian stores the most significant byte first and is network byte order. x86 and Apple silicon are little-endian. In JavaScript it matters for binary data: typed arrays use the platform's order, while DataView defaults to big-endian unless told otherwise.
Assistant
Sign in to use the assistant — ask what the problem means, get a hint when you're stuck, or have your current work reviewed. Conversations save to your account.