Web Analytics Made Easy -
StatCounter Combine var declarations - CodingForum

Announcement

Collapse
No announcement yet.

Combine var declarations

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Combine var declarations

    I would like to combine these two lines into one:
    Code:
    var firstone = "";
    var secondtwo = "";
    My attempt says undefined value. Please advise.
    Code:
    var firstone, secondtwo = "";

  • #2
    I'm afraid you can't do it like in other full-bloom desktop programming languages.

    Comment


    • #3
      Thanks for your quick response!

      Comment


      • #4
        eeer, actualy you can do that this way
        Code:
        var firstone;
        var secondtwo;
        firestone=secondtwo='';
        KOR
        Offshore programming
        -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

        Comment


        • #5
          Thanks it works great!

          Comment

          Working...
          X