I’ve read a lot about Data Types in javascript, but found nothing about long int.
I need to know how to define Long Int in javascript.
The reason is the input of following methods of Range object accepts Long data type as second parameter :
var storedSelection = document.createRange();
storedSelection.setStart(document.body, );
storedSelection.setEnd(document.body, );
This Image is captured from WebStorm IDE, please pay attention to type mentioned in this image:

If you’ve read a lot about JavaScript’s data types as you say then you should already know that:
x = 12you can later setx = "some string"orx = { some : "object" }and so forth.I don’t know where you read that the range methods accept a “long int data type” as a parameter, but for that parameter you can pass in a JS variable that you know holds an integer, or a numeric literal, or even a function call that returns a number:
Further reading: https://developer.mozilla.org/en/JavaScript/Guide/Values,_Variables,_and_Literals
P.S. If you have a non-integer value as a result of a calculation, say you’re calculating your range by dividing the total length by three or something, you can force the result to be an integer by rounding to the nearest integer with
Math.round()or rounding down withMath.floor()or rounding up withMath.ceil(). See also theMathobject.