www.webdeveloper.com
Results 1 to 3 of 3

Thread: What datatypes are supported in Javascript?

Hybrid View

  1. #1

    What datatypes are supported in Javascript?

    Hello Frnds,



    Plz share about What datatypes are supported in Javascript?


    Thank u,

  2. #2
    Join Date
    Mar 2009
    Location
    Wherever i lay my hat
    Posts
    180
    Javascript is loosely typed, which means you don't have to explicitly specify a data type for variables etc. If you want to have a number, just set it:

    var myNumber = 12;

    Same with strings and others:

    var myString = "twelve";
    var myArray = [ 1, "two", 3, "four" ];
    ...

    Read more here:

    http://www.w3schools.com/js/js_datatypes.asp

    https://developer.mozilla.org/en-US/...,_and_literals

  3. #3
    Thank u dear,

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles