If you haven't done it already, learn about the tools to understand more about what you will be using.
Then fork
this repository and clone
your fork to start working on it.
To get started read the Standard procedure
Get a grasp of JavaScript syntax by reading the commented code examples
If you have a question, do these in order:
- Search in the example
- Search in the documentation
- Search online
- keep looking (~15 minutes is a good balance, less would show poor efforts, more you start to just being stubborn / loosing your time)
- Ask for help from any inhert object nearby (rubber duck debugging)
- Ask your nearest peer
- Ask another peer
- Ask on discord (don't ask to ask, just ask)
Make sure you understand how your problem was solved
export a string str
with the value "42"
export a number num
with the value 42
export a boolean bool
with the value false
export a string escapeStr
containing the characters \, /, ', ", and `
export a boolean 'spaced key'
with the value true
exports an array of two element:
- a number with the value
4
at the index 0 - a string with the value
'2'
at the index 1
export a function fn
that takes one argument and return it
export a function get
that takes one argument, a string
and return the corresponding value
export an object obj
that contains all the key / values from module.exports
except for the spaced key, obj.obj
should be a circular reference to itself
export a function makeGet
that takes one argument and return a function that
takes no arguments but return the previously given argument
export a function hideMe
that takes one object argument
and return a function that takes a string arguments and return the corresponding
values from the previously given object
export a function safe
that takes no arguments
and return an object that contain two functions, set
, and get
.
The function set
take any value argument, store it and return generated key
If a second argument is given to set, it will be used as a key
and update the value at the given key
The function get
takes one of the generated key returned from set
and return the corresponding value
The generated keys must be empty object references generated by Math.random()
export a function superSafe
that work's exactly like safe
but the generated
keys must be empty object references generated by Object.create(null)
You haven't made any blocks, only arrow functions.
Only functions and arguments
DRY my good fellas
TODO: add the dry bonus rule, makeGet, hideMe and safe