Created
September 22, 2019 16:07
-
-
Save niktariy/4ebbdc9fda6a5cb6c46ba3bd5bb185e5 to your computer and use it in GitHub Desktop.
Behavior of duplicated named parameters in strict mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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