What will be the output of the following JavaScript code?
<p id=”demo”></p>
<script>
function myFunction()
 
{
   var res = “”;
   res=res + Number.isSafeInteger(Math.pow(2, 53)-1)+”: 253-1
“;
   document.getElementById(“demo”).innerHTML = res;
}
</script>
a)  True
b)	false
c)	error
d)	undefined
Answer: a
Explanation: The Number.isSafeInteger() method determines whether a value is a safe integer. A safe integer is an integer that can be exactly represented as an IEEE-754 double precision number (all integers from (253 – 1) to -(253 – 1)).
						
						
												
							Related Posts
- Empdt1(empcode, name, street, city, state, pincode).
 For any pincode, there is only one city and state. Also, for given street, city and state, there is just one pincode. In normalization terms, empdt1 is a relation in
- Which forms are based on the concept of functional dependency:
- Which forms has a relation that possesses data about an individual entity:
- Which forms simplifies and ensures that there are minimal data aggregates and repetitive groups:
- Which is a bottom-up approach to database design that design by examining the relationship between attributes:
- Functional Dependencies are the types of constraints that are based on______
- Which-one ofthe following statements about normal forms is FALSE?
Join The Discussion