diff --git a/Activy2_Capitalized.js b/Activity2_Capitalized.js similarity index 100% rename from Activy2_Capitalized.js rename to Activity2_Capitalized.js diff --git a/Activity3.png b/Activity3.png deleted file mode 100644 index eab7079..0000000 Binary files a/Activity3.png and /dev/null differ diff --git a/Activity3_Alphabetical.js b/Activity3_Alphabetical.js deleted file mode 100644 index 8ed2c85..0000000 --- a/Activity3_Alphabetical.js +++ /dev/null @@ -1,5 +0,0 @@ -function Alphabetical(string)// function that will process the string. - { -return string.split('').sort().join(''); // splitting the words into letter{split}, and then sorting them out in an alphabetical order{sort}, and combined them again but in a sorted position{join}. - } -console.log(Alphabetical("qwertyuiop"));// use the function to a word. diff --git a/Activity4.png b/Activity4.png deleted file mode 100644 index fb06361..0000000 Binary files a/Activity4.png and /dev/null differ diff --git a/Activity4_Less.js b/Activity4_Less.js deleted file mode 100644 index b5e03d0..0000000 --- a/Activity4_Less.js +++ /dev/null @@ -1,20 +0,0 @@ -function Lessthan18(arr_num) // function that is used to find the number in array that is less than 18. -{ - arr_num.sort(function(x,y) // sorting the values - { - return x-y; - }); - - var narray = [arr_num[0]]; //this array is utilized to store the numbers - - - for(var j=1; j < arr_num.length; j++) // loop is used to run the if statement in every indexes - { - if(arr_num[j] < 18) // if statement that will evaluate the numbers if they are less than 18 - { - narray.push(arr_num[j]); // storing the true values - } - } - return narray.join(',');// combining the true values - } -console.log(Lessthan18([19,22,33,4,55,7,88,9,10])); // utilizing the function in the console. \ No newline at end of file