diff --git a/Activity 2.jpg b/Activity 2.jpg deleted file mode 100644 index 401916f..0000000 Binary files a/Activity 2.jpg and /dev/null differ diff --git a/Activity 3.jpg b/Activity 3.jpg deleted file mode 100644 index 7950ab0..0000000 Binary files a/Activity 3.jpg and /dev/null differ diff --git a/Activity2_CapitalLetters.js b/Activity2_CapitalLetters.js deleted file mode 100644 index e116f04..0000000 --- a/Activity2_CapitalLetters.js +++ /dev/null @@ -1,11 +0,0 @@ -function capitalized(str) //this is where the function thrust by capitalizing the string -{ - var crntarray = str.split(' '); //the current array in which original element is splitted accordingly - var newarray = []; //new string array - for(var i = 0; i < crntarray.length; i++) //the loop which every index/es will execute in an array. - { - newarray.push(crntarray[i].charAt(0).toUpperCase()+crntarray[i].slice(1)); //the function will thrust by replacing each first letter, in a word, with a capital letter. - } - return newarray.join(' ');//will consolidate each component into a string. -} -console.log(capitalized("parents will do what's best for you.")); //calling the function to transform the initial string. \ No newline at end of file diff --git a/Activity3_AlphabeticalOrder.js b/Activity3_AlphabeticalOrder.js deleted file mode 100644 index e34ca41..0000000 --- a/Activity3_AlphabeticalOrder.js +++ /dev/null @@ -1,5 +0,0 @@ -function AlphabeticalOrder(string) //the process of the string - { -return string.split('').sort().join(''); //this is where the function comes along. The (split) will thrust by splitting the words into letters. The (sort) will thrust by sorting out in an alphabetical order. The (join) will thrust by combining the letters but in a fixed and sorted position. - } -console.log(AlphabeticalOrder("manlupig"));//the function will process accordingly. Enter a word.