functions
by gwenaelhagenmuller
JavaScript
console.clear();
function section(str) {
br();
console.log("////////////////////////////////////////////");
console.log("// " + str);
console.log("////////////////////////////////////////////");
br();
}
function warning() {
console.log("!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!");
}
function br() {
console.log("");
}
var curLine = 1;
function line(str, res) {
console.log(curLine++, str, " ==> ", res);
}
section("functions");
var onFullscreenChange = function () {
console.log("onFullscreenChange");
};
line("var onFullscreenChange = function() {...}", onFullscreenChange());
function onFullscreenChange2() {
console.log("onFullscreenChange2");
};
line("function onFullscreenChange2() {...}", onFullscreenChange2());