Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
May 24th, 2018
75
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
function smile(isHappy) {
var smiling;
var sad;
if (isHappy) {
smiling = 'I am happy!';
} else {
sad = 'I am sad!';
console.log(smiling);
}
}
smile(false); // undefined
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
C# | 2 min ago | 1.39 KB
Untitled
C# | 3 min ago | 0.67 KB
Untitled
C# | 4 min ago | 0.43 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 💰
GetText | 22 min ago | 0.38 KB
Untitled
CSS | 37 min ago | 4.12 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 57 min ago | 0.39 KB
Untitled
C# | 1 hour ago | 1.33 KB
Untitled
Java | 1 hour ago | 3.03 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!