Skip to content

Commit

Permalink
Reto #30 - JavaScript ajuste
Browse files Browse the repository at this point in the history
  • Loading branch information
jmedinac1987 committed Jul 25, 2023
1 parent f28e8c5 commit f7929a7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function validateNumberBlock(numberBlock) {

arrayNumberBlock = numberBlock.trim().split("-");

arrayNumberBlock.some((element) => {
arrayNumberBlock.forEach((element) => {
let arrayElement = element.split("");
if (arrayElement.length >= 2) {
for (let i = 0; i < arrayElement.length; i++) {
Expand Down Expand Up @@ -56,7 +56,7 @@ function decodeMessage(numberBlock) {
}
});

return message;
return message.toUpperCase();
}

console.log(decodeMessage("6-666-88-777-33-3-33-888"));

0 comments on commit f7929a7

Please sign in to comment.