본문 바로가기
Java Script/JS basic

[JS] statement VS expression

by CodeMia 2022. 4. 15.

expression 

10+13;

'hello';

10 > 9; 
10 < 20; 
true;
a===20 && b===30;

average = 55;

 

 

 

statement는

컴퓨터가 특정 액션을 하도록 하는 것 

변수 만들기, 

함수 만들기, 

loop 

 

include creating a variable or a function, looping through an array of elements, evaluating code based on a specific condition etc. JavaScript programs are actually a sequence of statements.

 

 

-- 출처 --

https://medium.com/launch-school/javascript-expressions-and-statements-4d32ac9c0e74

댓글