I am new to js and started using it with rails. I want to check what variable value is getting passed. I looked on internet and found the we have to use
console.log(var_name);' and it gets displayed in console window inbrowser window` (ctrl + shift + j) in firefox. But when checked, nothing is displayed. Below is my code:
But the above is not displaying anything in the console.
Is it the right syntax? And the output is to be displayed in
browser window/console or somewhere else?