Js Statement vs Expression
Mahin Tazuar
Posted on January 22, 2022
Expression
** When we are use any value for using insiade a variable, If else condition, Loop etc. This value initialization are called expression. Simple Statement justify the expression and do the action after considering the expression.
// Expression
'Zonayed' + ' ' + 'Ahmed';
**
Statement -
** Simple inside javascript when we are using second bracket after closing that we are using semicolone that's whole syntext called statement. In details statement working with expression, consider it and do the action after justify the expression.
// Statement
for(expressions) {
//Some Code here
}
Remember if we are using arrow function inside a variable that whole things are not Statement that is called expression.
đź’– đź’Ş đź™… đźš©
Mahin Tazuar
Posted on January 22, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.