Skip to content

Instantly share code, notes, and snippets.

@oncomouse
Created January 20, 2018 16:42
Show Gist options
  • Save oncomouse/7e8c105672880e87cec575b596cbe48c to your computer and use it in GitHub Desktop.
Save oncomouse/7e8c105672880e87cec575b596cbe48c to your computer and use it in GitHub Desktop.
Amodern Code Figures
function sayHello(name) {    
     return ‘Hello there,  + name;
}
function sayHello(name) {
    name = name || ‘default person’;
    return ‘Hello there,  + name;
}
function sayHello(name=’default person’) {
    return ‘Hello there,  + name;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment