Have you always wanted to play a trick on a fellow web developer?
Or do you want to prove your useless knowledge?
Here are some nasty one-liners to really turn a web project upside down.
Even if these are perhaps not tips for production-ready apps, you can learn something new about the web development world.
Array.prototype. As the name suggests, this is a prototype or a template for arrays — and we can edit it.
But pushing on the prototype does not only bring predictable results — on the contrary. This is where it gets a bit strange and can cause a lot of confusion. Let’s look at an example.
Array.prototype.push("First") let emtpyArray = 
So we pushed something on the prototype and then created an empty array. But because we added the element “first” directly to the template for all arrays, our empty array is not empty.
console.log(emptyArray) //  console.log(emptyArray.length) // 0
So far, everything looks normal. But look at what is happening here:
console.log(emptyArray) // "First"
Want to develop a website or re-design using CSS Development? We build a website and we implemented CSS successfully if you are planning to **[Hire CSS Developer](https://hourlydeveloper.io/hire-dedicated-css-developer/ "Hire CSS Developer")**...