You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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;