return statement normally terminate function execution. But I have been realized that return statement does not work like what I expected? Where is the problem?
function SimpleSymbols() {
["a", "b", "c", "d"].forEach(function (char, index) {
try {
console.log("alert");
return "false"; //this line does not work?
} catch (err) {
}
});
}
SimpleSymbols();