[JavaScript] Capitalise First Letter of Each Word

Code written in JavaScript. This script capitalises the first letter of each word in a sentence. First, the sentence is split into a temporary array. The function “capitaliseFirstLetter” loops through each element of the array and capitalises the first letter. Finally, the result is outputted. Available on Pastebin┬áhere!

[JavaScript] Multiply Corresponding Elements of 2 Arrays

Code written in JavaScript. This script splits a string into an array. The array’s elements are then split further by another delimiter into 2 arrays. The elements in the first array are then multiplied by their corresponding elements in the second array. (Example: Array1[0] is multiplied by Array2[0], Array1[1] is multiplied by Array2[1] and so…

[Java] Multiply Corresponding Elements of 2 Arrays

Code written in Java. This script splits a string and creates 2 arrays out of them. The elements are then split further by another delimiter. The elements in the first array are then multiplied by their corresponding elements in the second array. (Example: Array1[0] is multiplied by Array2[0], Array1[1] is multiplied by Array2[1] and so…