nah man! the last snippet only showed me, the following error suggesting that variable p has already been used.
VM94:1 Uncaught SyntaxError: Identifier 'p' has already been declared
(anonymous) @ VM94:1
Recheck your code
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.