So what I am trying to do is very simple and straightforward. Passing a String to a JavaScript function and print it as following.
brightRoom('bedroom');
Then
function brightRoom(room){
console.log("bright " . room);
}
What I get is undefined. Which I am not sure what may caused that issue.