Is it possible to declare a variable in Javascript along its type?

Options
- Yes
- No


CORRECT ANSWER : No

Discussion Board
Ehhh?

Type is declared by variables value... not by declaring the type of variable before declaration. So, the correct answer is no :) Please ammend.

Tom Bennett 09-30-2015 08:30 AM

This must be wrong.

I think these quizes are not reliable...

Andrew 06-23-2015 01:02 AM

Bridge Java and .NET

This is news to me. I'd prefer JavaScript to be a type-safe language LOL but it's not.
Try to say:
var String myString = "blah";
Unless you mean a new instance of an object using protoType?




Yvonne Wood 02-19-2015 06:54 PM

Javascript

Please elaborate more on this with reasons. Though i got the answer correct

Baingana David 11-11-2014 02:51 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement