Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jan 22nd, 2019
67
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.22 KB
| None
|
0
0
raw
download
clone
embed
print
report
//ES6
function f (a, b = 10, c = 20) {
return x + y + z
}
f(5) === 35
//ES5
function f (a, b, c) {
if (b === undefined)
y = 10;
if (c === undefined)
c = 20;
return x + y + z;
};
f(1) === 35;
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 26 min ago | 0.39 KB
Untitled
C# | 28 min ago | 14.26 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 💰
GetText | 38 min ago | 0.38 KB
FastLED Control rev_09
Arduino | 49 min ago | 3.04 KB
RGB LED Fader rev_08
Arduino | 1 hour ago | 2.03 KB
10 moves rule Petre
Python | 1 hour ago | 3.14 KB
Untitled
SQL | 1 hour ago | 0.81 KB
Temperature Control rev_01
Arduino | 1 hour ago | 1.65 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!