Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Python:
- def Square (x):
- return (x * x)
- JS:
- var Square = function (x) {
- return (x * x);
- };
- That's not good enough, though, so here's another JS syntax:
- var Square = (x) => {
- return (x * x);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement