87ebc9c36a
* Fix missing event, correct example conversion * Fix unit case * Remove Infosec items, add lowercase requirement * Convert to ES6, Update Packages, Fix display * Applying @nhcarrigan's changes from site tests * Removed unneeded mongodb ref * Remove User Stories, Reformat README * Apply suggestions from code review - Remove "Quality Assurance Project" Prefix Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com> * Re-add the example text, clean up formatting * Update Favicon * Fix repo link, remove zombie.js * Remove unused files, add sample.env Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com> Co-authored-by: Rex Schrader <rex.schader@gmail.com>
53 lines
780 B
JavaScript
53 lines
780 B
JavaScript
/*
|
|
*
|
|
*
|
|
* Complete the handler logic below
|
|
*
|
|
*
|
|
*/
|
|
|
|
function ConvertHandler() {
|
|
|
|
this.getNum = function(input) {
|
|
let result;
|
|
|
|
return result;
|
|
};
|
|
|
|
this.getUnit = function(input) {
|
|
let result;
|
|
|
|
return result;
|
|
};
|
|
|
|
this.getReturnUnit = function(initUnit) {
|
|
let result;
|
|
|
|
return result;
|
|
};
|
|
|
|
this.spellOutUnit = function(unit) {
|
|
let result;
|
|
|
|
return result;
|
|
};
|
|
|
|
this.convert = function(initNum, initUnit) {
|
|
const galToL = 3.78541;
|
|
const lbsToKg = 0.453592;
|
|
const miToKm = 1.60934;
|
|
let result;
|
|
|
|
return result;
|
|
};
|
|
|
|
this.getString = function(initNum, initUnit, returnNum, returnUnit) {
|
|
let result;
|
|
|
|
return result;
|
|
};
|
|
|
|
}
|
|
|
|
module.exports = ConvertHandler;
|