Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (X N J
- // cool things you can do with + operator in JavaScript
- +0xff; // quickly convert hex to decimal
- +new Date(); //equivalent to new Date().getTime();
- // get even cooler
- let random = {
- valueOf: function () {
- return Math.random() *100
- }
- }
- // yes that's valid code
- +random // 67.9732.
- +random // 23.0445.
- // https://anuraghazra.github.io I
Advertisement
Add Comment
Please, Sign In to add comment