Skip to main content

Command Palette

Search for a command to run...

JS 百題斬

Published
•1 min read•View as Markdown
JS 百題斬
J

Nothing is true, everything is permitted.

1. 減數字字串,會轉回數字型別

2.

3. b 會省略後面不是數字的字串,所以是 15

(如果說 parseInt 碰上了無法被 radix 指定的進位制所轉換的字元,它會忽略該字元、以及其後所有字元)

4.

More from this blog

Untitled Publication

244 posts