본문 바로가기
CODEIT;

프로그래밍 시작하기 in JavaScript : 작명 가이드

by ♡˖GYURI˖♡ 2023. 9. 18.

꼭 지켜야 하는 룰 (지키지 않으면 오류)

1. JavaScript 식별자는 문자, 밑줄 혹은 달러 기호로 시작해야 함 (두 번째 글자부터는 숫자도 가능)

2. 대문자와 소문자 구별

3. 예약어는 사용하면 안 됨

 

지키면 좋은 룰 (더 좋은 스타일을 위해)

1. 의미 없는 이름은 좋지 않음

2. 너무 추상적인 이름은 좋지 않음

3. 모든 변수 이름은 'camelCase'로 쓰는 것이 좋음

 

https://github.com/ParkSB/javascript-style-guide

 

GitHub - parksb/javascript-style-guide: Airbnb JavaScript 스타일 가이드

Airbnb JavaScript 스타일 가이드. Contribute to parksb/javascript-style-guide development by creating an account on GitHub.

github.com

https://google.github.io/styleguide/jsguide.html

 

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

https://www.w3schools.com/js/js_conventions.asp

 

JavaScript Style Guide

W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

www.w3schools.com

https://standardjs.com/rules-kokr.html

 

JavaScript Standard Style

English • Español (Latinoamérica) • Français • Bahasa Indonesia • Italiano (Italian) • 日本語 (Japanese) • 한국어 (Korean) • Português (Brasil) • 简体中文 (Simplified Chinese) • 繁體中文 (Taiwanese Mandarin) 이것은 Ja

standardjs.com

https://github.com/rwaldron/idiomatic.js/tree/master/translations/ko_KR