If I understand correctly, you would like to include a non-printable byte, like 0x15 (ASCII NAK), in a string literal in source code. If so you can do it using "x" escapes like this: const s = "hello\x15\x2f" Run
This does not increases (binary) code size.