Skip to content

Instantly share code, notes, and snippets.

View jackychenhahahaha's full-sized avatar

Jacky Chen jackychenhahahaha

View GitHub Profile
@jackychenhahahaha
jackychenhahahaha / self-assessment-1.js
Created September 20, 2019 01:28
Jianzhong (Jacky) Chen
function convertTo(units, num) {
//Do not worry about formatting your output to round to the nearest 2nd decimal number.
if (units === 'cm') {
return num * 2.54;
} else if (unites === 'in') {
return num / 2.54;
}
}
//=================================================