Morning,
I have wrote a function to fetch the data from json and return the value back, but its saying SyntaxError: Unexpected token u
Second Function
function fetchData(u, c, k) {
return JSON.parse(localStorage[u + c][k]);
}
Logging
console.log(fetchData(username, centre, "date"));
Error Uncaught