I need help with a function I've created.
For example, I parse a JSON string and I want to get the value of the passed parameter from the parsed JSON.
function returnVal(name) {
parsedJSON = JSON.parse('{"test": "hello"}');
return parseJSON.name;
}