Skip to content

Instantly share code, notes, and snippets.

@eclecticmiraclecat
Created August 18, 2020 18:50
Show Gist options
  • Save eclecticmiraclecat/01e85fe5ab4988a63d72e5fbdf018088 to your computer and use it in GitHub Desktop.
Save eclecticmiraclecat/01e85fe5ab4988a63d72e5fbdf018088 to your computer and use it in GitHub Desktop.

Javascript

function sum(a, b) {
    return a + b
}

let sum = (a, b) => {
    return a + b
}


let sum = (a, b) => a + b

Python equivalent

def sum(a, b):
    return a + b

sum = lambda(a, b) : a + b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment