⛔ Uncaught SyntaxError: Duplicate parameter name not allowed in this context
replit:
console.log("Howdy"); // never runs❗
sayHi("Hello", "Hi"); // never runs❗
// ⭐️ duplicate parameter name not allowed in "strict mode"
// ----------------------------------------------------------
// ⛔ Uncaught SyntaxError:
// Duplicate parameter name not allowed in this context
// ↓
function sayHi(x, x) {
"use strict";
console.log(x);
}