Node Js Assessment Question set
Node Js Assessment Question set
current directory so that they are in the following format: FILENAME, FILENAME, ...
Example Output
In the JavaScript file, write a program to perform a GET request on the route
https://coderbyte.com/api/challenges/json/rest-get-simple and then print to the
console the hobbies property in the following format: ITEM1, ITEM2, ...
Example Output
running, painting
Node.js Math Parse
In the JavaScript file, write a function to parse a string that contains a route name called math, and 2
query parameters which will be numbers. Your function should output a JSON stringified array that
contains the following items in this exact order: the difference, product, quotient, and sum of the
query parameters all rounded to the nearest integer.
For example, if the input is /math?a=10&b=5, then the output should be [5,50,2,15]
Simple Password
Have the function SimplePassword(str) take the str parameter being passed and determine if
In the JavaScript file, write a program to perform a GET request on the route
https://coderbyte.com/api/challenges/json/json-cleaning and then clean the object
according to the following rules: Remove all keys that have values of N/A, -, or empty strings. If one
of these values appears in an array, remove that single item from the array. For all keys removed,
create a key/value pair at the end of the output object with the key items_removed and the value is
Example Input
{"name":{"first":"Daniel","middle":"N/A","last":"Smith"},"age":45}
Example Output
{"name":{"first":"Daniel","last":"Smith"},"age":45, "items_removed": 1}
Open-ended questions ?