LoginSignup
5
4

More than 5 years have passed since last update.

JavaScript べからず集

Posted at

文字列置換を単純にString.replaceでやるべからず

第一引数に正規表現を指定しないと、1個しか置換してくれない。

onloadなどに代入すべからず

addEventListenerを使う。

varを使うべからず

letを使わないとlintが怒る。

for-of文の変数をletにすべからず

constを使う。

5
4
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4