mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 04:39:07 -10:00
28 lines
300 B
JavaScript
28 lines
300 B
JavaScript
"use strict";
|
|
/* exported global arithmetic composition chaining */
|
|
|
|
const obj = { b };
|
|
|
|
function a() {
|
|
return obj;
|
|
}
|
|
|
|
function b() {
|
|
return 2;
|
|
}
|
|
|
|
function arithmetic() {
|
|
debugger;
|
|
a() + b();
|
|
}
|
|
|
|
function composition() {
|
|
debugger;
|
|
b(a());
|
|
}
|
|
|
|
function chaining() {
|
|
debugger;
|
|
a().b();
|
|
}
|