función anidada

function bankRobbery() {
    const heroes = ["spiderman", "batman", "black panther", "batwoman"];
    function cryForHelp() {

        function inner() {
            for (let hero of heroes) {
                console.log(`PLEASE HELP US, ${hero.toUpperCase()}`);
            }
        }
        inner()
    }
    cryForHelp()
}
Annoying Antelope