Mrs. Tini’s till code with _ in its numbers: when does the engine accept the underscores, when does it refuse, what about a leading _15000, and what becomes…
Big numbers are everywhere: prices, timeouts in milliseconds (60_000), bitmasks (0b1010_0001), colours (0xFF_88_00). One missed zero can be a bug. Separators make a number in code read the way you think it, at no cost while it runs. But they are only for code: text people type does not follow the rule.
The underscore is only for code, not for the value or for text
1000_ or 1__000 makes a SyntaxError Exactly one _, and only between two digits. An underscore at the end or two in a row are refused while the code is read, before anything runs.0x_FF or 3._14 is an error The 0x/0b prefix and the decimal point are not digits, so a _ may not touch them. Write 0xFF_88 and 3.141_59.Number('1_000') gives NaN Separators are only for literals in code. Text is read while the page runs, and Number() knows no _ (parseInt stops at the _, so '1_000' becomes 1). Drop them first: Number(teks.replaceAll('_', '')).1_000_000 or 0b1010_0001: the number stays the same._ in a row, or a _ at the end: a SyntaxError._ in front No number any more: the engine reads a variable name.Number('15_000') gives NaN.