complexity: 4 ; importance: 5; author: docentmail


"if" statement

Problem 2016-03-24-23-49

Question: Develop an snippet to use "if" statement to alert "type is number" if in case the type variable "theVar" is number, "type is string" if type is string less, "type is something else" otherwise.

var theVar=15; // "hello", [1];

// put you if here
alert("type is number");
alert("type is string");
alert("type is something else");