What does if(x){some code} mean?

let x=5;
if(x){
//some code
}

What does x mean inside of if condition expression?
Does it equivalent to if(x==true), or if(x==!undefined) ?

An if statement always evaluates the expression inside of the parens to either true or false.

Thanks @bbsmooth, read the article and now I get it.