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 4.jpg b/Activity 4.jpg deleted file mode 100644 index 8d99ce8..0000000 Binary files a/Activity 4.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/Activity4_LessThan.js b/Activity4_LessThan.js deleted file mode 100644 index d60fcbc..0000000 --- a/Activity4_LessThan.js +++ /dev/null @@ -1,19 +0,0 @@ -function LT18(arr_num) // this is where the function galvanized in which the number in array is less than 18 LT=Less Than 18 - { arr_num.sort(function(x,y) //sorting function - { - return x-y; - }); - - var narray = [arr_num[0]]; // to store the numbers - - - for(var j=1; j < arr_num.length; j++) // Once again, the loop is used to run the 'if' statement in every index/es - { - if(arr_num[j] < 18) // the if statement will evaluate the numbers "if" the numbers is less than 18 - { - narray.push(arr_num[j]); // storing the true values - } - } - return narray.join(',');// combining the values (join). -} -console.log(LT18([16,9,10,18,20,14,21,11])); // this is where you utilize the concept of the function in the console accordingly.