Javascript code of function calling is not working in my device

second parameter in digitalRead function should be either HIGH or LOW.