Answers for "if operator javascript"

0

if javascript

if (a > 0) {
    result = 'positive';
  } else {
    result = 'NOT positive';
  }
Posted by: Guest on February-05-2021
0

javascript conditional evaluation

if ( expression )
Here are some expressions and their result
	Undefined: false
	Null: false
	Boolean: the result equals the input argument (no conversion)
	Number: false if the argument is +0, -0, or NaN; otherwise true
	String: false if the argument is an empty string (length = 0); 
			otherwise true
	Object: true
Posted by: Guest on January-22-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language