LoginSignup
0
2

More than 3 years have passed since last update.

Javascript命名規則

Last updated at Posted at 2020-03-16

write_index → スネークケース(DBのカラム名)
getCookie → キャメルケース

JavaScriptは基本的に
関数、メソッド、変数命名→Lower Camel(小文字で初めて途中単語の頭文字を大文字に)
クラス名→Upper Camel(大文字で始めて途中単語の頭を大文字に)

キャメルケースとは

キャメルケースは「単語の先頭を大文字にしてつなげる表記方法」です。
変数名の付け方の話で、よく出てきます。

0
2
0

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
0
2