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/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/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. 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.