Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • What is mean by +_ in JS

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 180
    Comment on it

    Hello Reader's Sometimes you might have seen " var = +_" syntax in JS. So this line is as simple as assiging the variable to another, Where + is transfering the value of _ to var and _ is just the variable.

    var _ = "D5200";
    var newVar = +_;
    

    Here _ is variale initialize by value 'D5200' and now newVar is assigned this value

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: