Common JavaScript Gotchas – Part 1

Pop quiz, hotshot, the image shows a common JavaScript ‘gotcha’ – or inadvertent mistake through incomplete knowledge of something. What exactly is happening here? You create a simple function called “getPerson”, and it returns you a JSON object with a single property on it, “name”. However! When you come to Continue Reading