Chapter 02 · foundation · runs in browser
Values and types
Work with numbers, text, and explicit conversions so that every expression has an unambiguous meaning.
01Numbers and arithmeticCalculate a final price and distinguish integer division from floating-point division.Try CEL02Strings, Unicode, and bytesBuild text containing diacritics and distinguish text from its byte representation.Try CEL03Conversions and type checksConvert a numeric string to int and verify the resulting type.Try CEL04Precedence and parenthesesChange evaluation order with parentheses and compare two different results.Try CEL