comma operator in javascript

Solutions on MaxInterview for comma operator in javascript by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "comma operator in javascript"
Angelina
03 May 2018
1var a = 0; 
2var b = ( a++, 99 ); 
3console.log(a);  // a will be equal to 1 
4console.log(b);  // b is equal to 99