Coding Challenge: Using Reader Monad in Function
Learn the usage of Reader monad in a function.
Problem statement
- Complete the
writeToBucket
andwriteToTable
functions. The content ofPromise.resolve
shows us what’s passed in. - Complete the
application
function, which should pass the uppercased message first towriteToTable
and next towriteToBucket
. - The
application
function uses the Reader monad to pass dependencies to the write functions, which should also give us an additional clue as to what those two functions should look like.
Complete the code
Get hands-on with 1400+ tech skills courses.