Web dev protip:
console.log("foo: ", p);
displays p in console as a live object. If it updates, every console entry of it updates.

console.log("foo: "+JSON.stringify(p) );
dumps the current state to console so you can figure out what changed over time.

In related news, my little BASIC parser now parses at least a couple tokens correctly (the colon lines are parsed tokens)

#webdev #protip #javascript

> typeof(1)
< "number"
> 1 instanceof Number
< false
> 1 instanceof number
< ReferenceError: Can't find variable: number
> Number.isInteger(1)
< true

DEEP BREATHS MARK. THIS WAS NOT *MADE* TO PISS YOU OFF, IT JUST DOES.
#webdev #javascript

@mdhughes

{ } + { }

t f w n a n

@screwlisp Yeah, but that's sensible, it's a web language and generously tries to convert things to the operator. What would + mean except to stringify non-number things and join them?

But why is there a number class but not 1 is not of it? That's fucking annoying.