Adding method to Object

Run Settings
LanguageJavaScript
Language Version
Run Command
const math = { add: function(x,y){ return x+y; }, multiply: function(x,y){ return x*y; }, sub: function(x,y){ return x-y; }, numbers: [1,2,3,4,5] }; console.log(math.add(7,5)); console.log(math.multiply(7,5)); console.log(math.sub(7,5)); console.log(math.numbers);
Editor Settings
Theme
Key bindings
Full width
Lines