I am trying to store some data in hexadecimal format to a variable in JavaScript and read the data in same format. When I tried assigning a variable to hexadecimal value and display it, I got as decimal value equivalent to hexadecimal.
var a = 0x0F;
WScript.Echo("a = "+a);
I got as a = 15
instead of a = 0x0F
. Why is this happening? Is it possible to get the value in hexadecimal format itself?