Variables Cheat Sheet / JavaScript

Yoon·2021년 8월 18일
0

Variable Definition:

변수는 데이터 값을 저장하는 BOX
한가지를 담을 수 있는 BOX로 다른것을 넣으면 첫번째 것이 사라짐.

var myVariable; 
is different than 
var mYVariable; 
변수의 이름은 숫자로 시작할 수 없음
Contain a space between words : var my_dog; 

> 사람이 읽을 수 있어야함.

우리는 우리 자신이나 컴퓨터만을 위해 코딩하는 것이 아니라 타인의 눈과 이해를 위해 코딩한다. 변수의 용도와 용도를 설명하는 이름을 지정하여, 다른 프로그래머들이 나중에 코드를 읽고 업데이트해야 할 수도 있다. 프로그램이 성장하고 점점 더 많은 변수, 객체 및 기능이 포함됨에 따라 좋은 변수 이름은 프로그램의 흐름을 따라가고 용도를 이해하는 데 도움이 될 수 있다. 따라서 변수 이름을 단순하고 직접적이며 기술적으로 유지해야한다.

Acceptable practice: var x = 25;
Though concise, this is not descriptive.

Better practice: var age = 25;
> Not as concise, but makes code clearer.

JavaScript Beginner Bootcamp (2021)

12개의 댓글

comment-user-thumbnail
2022년 6월 17일

이 게시물은 절대적으로 놀랍습니다. 정보가 너무 명확해서 많은 도움이 되었습니다. 올려주셔서 감사합니다. https://quordlegame.io/ https://iogamesio.org/

답글 달기
comment-user-thumbnail
2022년 10월 17일

어디에서나 소프트웨어 개발자는 브라우저 및 응용 프로그램과 같은 동적 및 대화형 웹 콘텐츠를 만들기 위해 이를 활용합니다. https://geometrydash-free.com

답글 달기
comment-user-thumbnail
2022년 10월 24일

Thanks for supplying the variables cheat sheet definition for the new beginners at JavaScrift like me. I appreciate it. https://driftboss2.co/

답글 달기
comment-user-thumbnail
2022년 11월 9일

This is such a fantastic post, and I had many https://territorialio2.co of the same thoughts. Make sure you continue producing quality posts like this one. I appreciate you sharing. For help with your marketing homework, come to us.

답글 달기
comment-user-thumbnail
2022년 12월 23일

공유해주셔서 감사합니다 https://slimerancher2.io

답글 달기
comment-user-thumbnail
2023년 3월 7일

I am using the command 'var' to declare variables in older versions of Javascript. Has a function scope and can be re-declared and updated. https://growdle.io/

답글 달기
comment-user-thumbnail
2023년 3월 14일

I sincerely appreciate it. I just want to let you know that the article is fantastic since this knowledge is truly helpful to me. https://exhibitofsorrows.com

답글 달기
comment-user-thumbnail
2023년 4월 18일

I believe that the provided information is extremely useful, as it can be applied in a variety of situations and imparts new knowledge. I frequently watch these videos and play https://1v1lolunblocked.io/

답글 달기
comment-user-thumbnail
2023년 5월 30일

As it may be used in a number of circumstances and imparts fresh knowledge, I think the material supplied is quite helpful. I play and watch these vids a lot. https://monkeyfarm.io/home

답글 달기
comment-user-thumbnail
2023년 6월 29일

Var, let, or const keywords can be used to declare variables.
Depending on where it is declared, the var keyword has either function scope or global scope https://autistictest.com

답글 달기
comment-user-thumbnail
2024년 9월 6일

복유해주셔서 밐사합니다. 코드 작성 전문가여야 합니다. getaway shootout

답글 달기
comment-user-thumbnail
2024년 12월 10일

Not gonna lie, I look forward to read more of these from you :D https://drivemadgame.io

답글 달기

관련 채용 정보