2024-11-28 23:25:40 -05:00
|
|
|
let on = async function (input, objects) {
|
2024-11-29 15:47:46 -05:00
|
|
|
objects.events.addEventListener(input[0],input[1]);
|
2024-11-28 23:25:40 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
let echo = async function (input, objects) {
|
|
|
|
console.log(input);
|
|
|
|
return input;
|
|
|
|
}
|
|
|
|
|
|
|
|
let add = async function (input, objects) {
|
|
|
|
return input[0] * 1 + input[1] * 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
let events = new EventTarget();
|
|
|
|
|
2024-11-29 20:09:54 -05:00
|
|
|
export {
|
2024-11-28 23:25:40 -05:00
|
|
|
on,
|
|
|
|
events,
|
|
|
|
echo,
|
|
|
|
add
|
|
|
|
};
|