JSFiddle - React, Tailwind, and code Playground

by niki4810

JavaScript

Object.prototype.foo = "hello";

var a = {};
console.log(a["foo"] !== null); //true
console.log(a.hasOwnProperty("foo")); //false