"Code= var a=1234; var n=a.length; alert(n); ",
Starting action Action.
Action.c(4): web_js_run started [MsgId: MMSG-26355]
Alert from JS (len=9): undefined
Action.c(4): web_js_run was successful [MsgId: MMSG-26392]
Ending action Action
Answer should 9 but I used to get undefined.
Could anyone please help on this to resolve the issue. Thanks
Note: Enabled javaEngine in RUNTIME
The varaiable "a" appears to be a number by your defination, pleae try change it to:
"Code= var a='1234'; var n=a.length; alert(n); ",