Skip to content

Instantly share code, notes, and snippets.

@niktariy
Created September 22, 2019 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niktariy/4ebbdc9fda6a5cb6c46ba3bd5bb185e5 to your computer and use it in GitHub Desktop.
Save niktariy/4ebbdc9fda6a5cb6c46ba3bd5bb185e5 to your computer and use it in GitHub Desktop.
Behavior of duplicated named parameters in strict mode
// Throws an error because of duplicate parameters (Strict mode)
function logParams (first, second, first) {
"use strict";
console.log(first, second);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment