Skip to content

Instantly share code, notes, and snippets.

View hebertclever's full-sized avatar

Hebert Clever Oliveira hebertclever

View GitHub Profile
  1. create a new database - name it company:
> use company
  1. Add all the employees listed below to the database company, in the collection employees:
// Write a function eligibleToDrink() that takes a number as an argument and returns a promise
// that tests if the passed value is less than or greater than the value 18.
// If greater then 18, resolve with 'Being ___ years old, you are eligible to drink'.
// If less then 18, reject with '___ years is underage. Here is a fresh squeezed orange juice for you!'
function eligibleToDrink (age) {
// ... your code