- As a customer I want to see a list of available products so I know what I can buy
GET /products
- As a customer I want to see the products belonging to a specific category, so I can find what I am looking for
GET /categories/:categoryId/products
const age = 31 // age | |
const gender = 'm' // 'm' or 'f' | |
const heightInM = 1.79 // height in m | |
const weightInKg = 82 // weight in kg | |
const dailyExercise = true // true or false | |
console.log(` | |
************** | |
BMI CALCULATOR |
function giveTimeEstimate(task, experience) { | |
let lookPro | |
if (experience.includes(task)) { | |
lookPro = true; | |
return timeEstimate(task); | |
} | |
lookPro = false; | |
throw new Error('I don\'t know how long this will take'); | |
} |
function doIt(anything, time) { | |
anything.progress++; | |
time--; | |
if (anything.progress === done) celebrate(); | |
if (time) doIt(anything, time); | |
} |