본문 바로가기

Python_WEB/JavaScript

[freecodecamp]JavaScript 할당 연산자로 변수 초기화

반응형

변수는 선언 된 것과 같은 줄에서 초기 값으로 초기화하는 것이 일반적입니다.

 

var myVar = 0;

 

myVar라는 새 변수를 만들고 초기 값 0을 할당합니다.

 

Q>

1. a 값을 9로 초기화해야합니다.

 

A>

var a = 9;

 

https://www.freecodecamp.org/

 

freeCodeCamp.org

Learn to code. Build projects. Earn certifications.Since 2015, 40,000 graduates have gotten jobs at tech companies including Google, Apple, Amazon, and Microsoft.

www.freecodecamp.org

 

반응형