metric-imperial-converter/controllers/convertHandler.js

53 lines
780 B
JavaScript
Raw Normal View History

2017-02-18 20:14:10 +01:00
/*
*
*
* Complete the handler logic below
*
*
*/
function ConvertHandler() {
this.getNum = function(input) {
let result;
2017-02-18 20:14:10 +01:00
return result;
};
this.getUnit = function(input) {
let result;
2017-02-18 20:14:10 +01:00
return result;
};
this.getReturnUnit = function(initUnit) {
let result;
2017-02-18 20:14:10 +01:00
return result;
};
this.spellOutUnit = function(unit) {
let result;
2017-02-18 20:14:10 +01:00
return result;
};
this.convert = function(initNum, initUnit) {
const galToL = 3.78541;
const lbsToKg = 0.453592;
const miToKm = 1.60934;
let result;
2017-02-18 20:14:10 +01:00
return result;
};
this.getString = function(initNum, initUnit, returnNum, returnUnit) {
let result;
2017-02-18 20:14:10 +01:00
return result;
};
}
module.exports = ConvertHandler;