metric-imperial-converter/controllers/convertHandler.js
2017-02-18 19:14:10 +00:00

53 lines
780 B
JavaScript

/*
*
*
* Complete the handler logic below
*
*
*/
function ConvertHandler() {
this.getNum = function(input) {
var result;
return result;
};
this.getUnit = function(input) {
var result;
return result;
};
this.getReturnUnit = function(initUnit) {
var result;
return result;
};
this.spellOutUnit = function(unit) {
var result;
return result;
};
this.convert = function(initNum, initUnit) {
const galToL = 3.78541;
const lbsToKg = 0.453592;
const miToKm = 1.60934;
var result;
return result;
};
this.getString = function(initNum, initUnit, returnNum, returnUnit) {
var result;
return result;
};
}
module.exports = ConvertHandler;