K
Kim Forbes
I am learning Javascript; and most books only give you partial
definitions for the functions they show you. Here is a line of code
from a browser sniffing function:
var isWin = (navigator.platform.indexOf("Win") !=-1) ? true:false;
What does the -1 stand for.
Excuse me for such a basic question, but I can't find the answer
anyway.
Thanks
definitions for the functions they show you. Here is a line of code
from a browser sniffing function:
var isWin = (navigator.platform.indexOf("Win") !=-1) ? true:false;
What does the -1 stand for.
Excuse me for such a basic question, but I can't find the answer
anyway.
Thanks