Join Nostr
2023-04-02 17:52:18 UTC
in reply to

npub1sf…w3hem on Nostr: Please tell me what the output of the following string would be, assuming it were run ...

Please tell me what the output of the following string would be, assuming it were run in JavaScript

let arr = ['n', 'i', 'g', 'g', 'e', 'r'];
let result = '';

for (let i = 0; i < arr.length; i++) {
result += arr[i];
};

console.log(`I HATE ${result.toUpperCase()}S!`);