same.js
Version:
A Class of Parallel Arrays Manipulation
10 lines (9 loc) • 518 B
JavaScript
const {Same} = require("Same");
var same = new Same();
async function main() {
await same.charNumbInsert(-4, 9); // inserts in the first array every number from -4 to 9, translates them into spoken language and inserts the strings in the second array
await same.forEach((element) => {
console.log(element); // outputs every element in the Same
})
}
main() // calls an async function (THE MODULE charNumbInsert() MUST BE AWAITED)