Created
August 11, 2022 14:59
-
-
Save MichaelrMentele/1b0ef55f84f43aa8a6d225dd0a6ccba6 to your computer and use it in GitHub Desktop.
Quiz for writing more idiomatic JS code
This file contains hidden or 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
// 1. how would you refactor this function signature? what is problematic about it? | |
const someFunc = (A, B, C, D = 3, E, F, G = 'default') => { ... } | |
// 2. see below | |
myString = "Some string." | |
b = myString[myString.length - 1] // -> b = myString.slice(-1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment