Search posts, tags, users, and pages
Jaya Krishna Pulipati
Programmer
String to number conversion using the unary operator. const a = '10'; +a // will print number 10 Look at below const foo = { valueOf: () => '10' }; +foo // it will also print 10
No responses yet.