This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function(fn) | |
{ | |
var n=fn.split(" "), // Split the full name into an array | |
it="", // Create and set the intials variable to nothing | |
i; // Set i to 0 for the while loop | |
while(i<n.length) // While loop that runs while i is smaller than the length of the array of names | |
{ | |
it+=n[i][0]; // Get the first letter from the name and add it to the it(initial) variable | |
i++ // Increment i by 1 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Based on | |
* - EGM Mathematical Finance class by Enrique Garcia M. <egarcia@egm.co> | |
* - A Guide to the PMT, FV, IPMT and PPMT Functions by Kevin (aka MWVisa1) | |
*/ | |
var ExcelFormulas = { | |
PVIF: function(rate, nper) { | |
return Math.pow(1 + rate, nper); | |
}, |