### JavaScript Eval

Enter JavaScript code and press the Execute button

var i = 1; // Number var s = "world!"; // String var bEnabled = false; // Boolean // If bEnabled is true, sayHello is called. bEnabled && sayHelloEx("cosmos!"); sayHelloEx(s, "msgbox"); // Function call // Function declaration function sayHelloEx(param, outputType = "msgbox") { var hello = "Hello, "; if (outputType == "msgbox") { alert(hello + param); } else { // "logmsg"... console.log(hello + param); } }