Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //normal function
- function square(x) {
- return x * x;
- }
- //same
- var square = (x) => {
- return x * x;
- }
- //same
- var square = (x) => x * x;
- //same
- //if there is only one argument we can use
- var square = x => x * x;
Add Comment
Please, Sign In to add comment