Skip to content

Output And Interaction

Fabian Morón Zirfas edited this page Jun 13, 2025 · 3 revisions

Output

/*
    To get a quick look at an value use alerts
    like this
    */
var bool = true;
alert(bool);

Output to console

/*
    In the ESTK you can also use the console
    hit ctrl+j  
    */
var text = "write me into the console";
$.writeln(text);

Interaction

/*
    Interact with the user via
    alerts, prompts and confirms
    */

var res = null;

res = confirm("Hello World?", false, "Title WIN only");

if (res == true) {
	res = prompt("Enter something:", "Hello World!", "Title WIN only");
	alert(res);
} else if (res == false) {
	alert("nothing to see here. Move along!");
}

Home

Clone this wiki locally