diff --git a/index.js b/index.js index 2ebfb37..f5f548f 100644 --- a/index.js +++ b/index.js @@ -2,11 +2,13 @@ function changeStrRegister(str="tEST"){ let strResult = ""; for (let i = 0; i < str.length; i++){ if (str[i].toUpperCase() == str[i]){ - strResult += str[i].toLowerCase() - } else { strResult += str[i].toUpperCase() } + strResult += str[i].toLowerCase(); + } else { + strResult += str[i].toUpperCase(); + } } return strResult; } -console.log(changeStrRegister('ASdsASDS')) \ No newline at end of file +console.log(changeStrRegister('ASdsASDS')); diff --git a/script.js b/script.js index b801440..ca2de54 100644 --- a/script.js +++ b/script.js @@ -1,4 +1,8 @@ -let i = 3; -for (let i = 0; i > 2; i++) { - console.log("Browser is doing wzzhhhh") +// let i = 3; +// for (let i = 0; i > 2; i++) { +// console.log("Browser is doing wzzhhhh") +// } + +while (true) { + console.log("Browser is doing wzzhhhh"); } \ No newline at end of file