From 560b6100f5610249522fb276d6686344951cd106 Mon Sep 17 00:00:00 2001 From: M0lt0 Date: Wed, 8 Nov 2023 14:41:15 -0300 Subject: [PATCH] day 2 leve1 1 --- myProcess/day-1/Exerc/{exc.js => exc-1.js} | 0 myProcess/day-1/{ => Exerc}/index.html | 2 +- myProcess/day2/exc/exc-2.js | 50 ++++++++++++++++++++++ myProcess/day2/exc/index.html | 15 +++++++ 4 files changed, 66 insertions(+), 1 deletion(-) rename myProcess/day-1/Exerc/{exc.js => exc-1.js} (100%) rename myProcess/day-1/{ => Exerc}/index.html (88%) create mode 100644 myProcess/day2/exc/exc-2.js create mode 100644 myProcess/day2/exc/index.html diff --git a/myProcess/day-1/Exerc/exc.js b/myProcess/day-1/Exerc/exc-1.js similarity index 100% rename from myProcess/day-1/Exerc/exc.js rename to myProcess/day-1/Exerc/exc-1.js diff --git a/myProcess/day-1/index.html b/myProcess/day-1/Exerc/index.html similarity index 88% rename from myProcess/day-1/index.html rename to myProcess/day-1/Exerc/index.html index b1fe121..353ffe0 100644 --- a/myProcess/day-1/index.html +++ b/myProcess/day-1/Exerc/index.html @@ -4,7 +4,7 @@ js-for-the-moon - +
diff --git a/myProcess/day2/exc/exc-2.js b/myProcess/day2/exc/exc-2.js new file mode 100644 index 0000000..4ce2522 --- /dev/null +++ b/myProcess/day2/exc/exc-2.js @@ -0,0 +1,50 @@ +// Exercise: Level 1 +const butn = document.getElementsByClassName('mass'); +let variable = '30 Days Of JavaScript'; +let fang = 'Facebook, Google, Microsoft, Apple, IBM, Oracle, Amazon'; +let bec ='You cannot end a sentence with because because because is a conjunction'; +let str = ""; +// function myFun(){ +// alert('open the console please') +// } +// butn.addEventListener('click', myFun()) +console.log(variable); +console.log(variable.length); +console.log(variable.toUpperCase()); +console.log(variable.toLowerCase()); +console.log(variable.substring(3)); +console.log(variable.slice(3,-1)); +console.log(variable.includes('Script')); +console.log(variable.split()); +console.log(variable.split(' ')); +console.log(fang.split(', ')); +console.log(fang.replace("javaScript","python")); +console.log(fang.charAt(15)); +console.log(fang.charCodeAt(11)); +console.log(fang.indexOf('a')); +console.log(fang.lastIndexOf('a')); +console.log(bec.indexOf('because')); +console.log(bec.lastIndexOf('because')); +console.log(bec.search('because')); +console.log(variable.trim()); +console.log(variable.startsWith('3')); +console.log(variable.endsWith('t')); +console.log(variable.match('a')); +console.log(str.concat( '30 Days of', 'JavaScript')); +console.log(variable.repeat(2)); + + + + + + + + + + + + + + + + diff --git a/myProcess/day2/exc/index.html b/myProcess/day2/exc/index.html new file mode 100644 index 0000000..6babcd5 --- /dev/null +++ b/myProcess/day2/exc/index.html @@ -0,0 +1,15 @@ + + + + + + Document + + + + + + + + + \ No newline at end of file