DEV Community

loading...

Discussion on: What does "if(variable++)" do in Javascript

Collapse
ayabongaqwabi profile image
Ayabonga Qwabi

I think it tests if the value exists either than if its incremented or not just like if you would say if( mystring ){ do this } of if( mybool ){ do this }