프로그래밍/유용한 사이트 | 정보
[JavaScript] 명명 규칙 관련 사이트
blueprint-12
2021. 12. 19. 20:13
▶자바스크립트 작명방법
+a : 링크 내부에는 없지만 할당된 값이 string인 상수는 전부 대문자로 작성한다.( 확인 필요 )
- 공백 X
- 특수문자 ( _ , $ )만 가능
- 숫자 시작 X
- 변수,인스턴스,함수,메서드 항상 소문자로 시작하는 카멜케이스
- 생성자 함수는 대문자 카멜 케이스
자바스크립트 스타일 가이드 - 네이밍 컨벤션 편
본 글은 아래의 자바스크립트 코딩 스타일 가이드를 참고 및 번역하여 작성되었습니다. 의역 및 잘못된 해석으로 잘못된 정보가 포함될 수 있으니 원문과 함께 참고해주세요. Google Airbnb Nexedi W3S
velog.io
https://google.github.io/styleguide/jsguide.html#naming-rules-common-to-all-identifiers
Google JavaScript Style Guide
Google JavaScript Style Guide 1 Introduction This document serves as the complete definition of Google’s coding standards for source code in the JavaScript programming language. A JavaScript source file is described as being in Google Style if and only i
google.github.io
-> 6번에 명명규칙 설명있음
헷갈리는것은 JS에서 class의 개념