Here's my code:
let padded = "03";
ascii = `u00${padded}`;
However, I receive Bad character escape sequence
from Babel. I'm trying to end up with:
u0003
in the ascii
variable. What am I doing wrong?
EDIT:
Ended up with ascii = (eval('"\u00' + padded + '"'));
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…