Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Apr 2007
    Posts
    179
    Thanks
    17
    Thanked 0 Times in 0 Posts

    var test = "abc" vs var test = ("abc")

    What is the difference between the

    var test = "abc";

    var test = ("abc");


    Thanks

    Scott

  • #2
    Regular Coder
    Join Date
    Dec 2008
    Location
    Tannhäuser Gate
    Posts
    286
    Thanks
    7
    Thanked 58 Times in 57 Posts
    There's no difference, in both cases it is gonna be ABC. You can use () to change order of operations on variables:
    x=2*3+2 - here x=8
    but in
    x=2*(3+2) x=10


  •  

    Posting Permissions

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