Skip to content

Instantly share code, notes, and snippets.

View jsergiu's full-sized avatar
🎯
Focusing

Sergiu Munteanu jsergiu

🎯
Focusing
  • Software Developer @ Facebook
  • Pittsburgh, PA
View GitHub Profile
@jsergiu
jsergiu / if-else.js
Created October 12, 2020 21:57
IF_ELSE
// cand ai un singur caz
if (today == "Monday") {
eat_pizza();
}
// cand ai 2 cazuri opuse
if (day_time == "day") {
stay_awake();
} else {
sleep();
class Greeting extends React.Component {
 componentDidMount() {
  window.MyApp.events.onEscape = this.closePopup;
 }
 componentWillUnmount() {
  window.MyApp.events.onEscape = null;
 }
 closePopup () { … }
render() { … }
}