-1

What is the difference between a Number and Integer in Javascript. This is an edit after the answer - I thought that the Integer datatype exists because of the function parseInt.

Akash Shyam
  • 104
  • 9
  • 2
    `Number` exists, "integer" doesn't…?! – deceze Oct 29 '20 at 07:56
  • https://stackoverflow.com/questions/4090518/ – Kai Oct 29 '20 at 07:56
  • Oh ok. But why is my question showing closed? I am new to stackoverflow. – Akash Shyam Oct 29 '20 at 08:13
  • 1
    @AkashShyam Because your question doesn't make much sense. You are comparing an existing datatype with a non existing datatype. You could at least explain why you believe both exist. Or what is causing your confusion. You can also read through [ask] on how you can ask good questions on Stack Overflow. – Ivar Oct 29 '20 at 08:35
  • @Ivar could you please remove the negative vote as I am unable to ask new questions due to a question ban – Akash Shyam Oct 30 '20 at 06:19
  • Is there any code involved that could provide more insights? What exactly do you mean by "Number" or "Integer"? – Nico Haase Oct 30 '20 at 09:04

1 Answers1

1

There is no Integer type in JavaScript; it treats ints and floats the same way