MyJSWorkPlace

Run Settings
LanguageJavaScript
Language Version
Run Command
var dio = require('./dio'); var namespace = require('./namespace'); /*function sendMsg(text){ console.log(text); } const message = 'Hello!'; function checkIfTrue(func, message){ func(message); } checkIfTrue(sendMsg, message); */ const message = 'Hello!'; function sendMsg(text){ console.log(text); console.log(arguments); } function checkIfTrue(func, message){ if (typeof func == 'function'); func(message); } const run = checkIfTrue(sendMsg, message); // const listener = function(id, object){ return {id, object};//object. }; const listeners = []; function addListener(listener){ listeners.push(listener(1, {})); }
var object = { a: 7, get get() { return this.a + 1; }, set set(x) { this.a = x / 2; } }; module.exports = object;
let message = { id: 1, text: 'Hello!' }; (function(text){ console.log(text); })(message.text);
var namespace = { 'TestClass' : function() { this.test = 0; this.show = function() { alert( this.test ) }; } }; namespace['testObj'] = new namespace.TestClass(); module.exports = namespace;
Editor Settings
Theme
Key bindings
Full width
Lines