JSFiddle - React, Tailwind, and code Playground

by Rational Rabbit

JavaScript

function queryParamsToJson() {
     href = "ola";
}

queryParamsToJson();
console.log( href ); // "ola" Polluted.
console.log( window.href ); // "ola" Polluted.