Attribuez une nouvelle méthode à chaque tableau de JavaScript (syntaxe différente)
function add()
{
let boo = ["b", "w", "r", "T", "y", "u"];
Array.prototype.on = function()
{
this['forEach'](function(el){console.log(el)});
/*the syntax above says run 'this array'(this)'s forEach function with the (function()) being the function being executed*/
}
boo.on();
}
Javasper