I solemnly promise to be lazy

this.getItemsFromDay(day)    .then(items => this.createDayInstances(items.foods))    .then(daysFoods => this.appendItemsFromDay(daysFoods))    .then(lastItem => lastItem.displayInfo())    .catch(err => {        nutritionMessage.classList.remove('hidden');        nutritionMessage.innerText = err.message;});
let observer = new IntersectionObserver(Food.loadInitialContent.bind(Food));observer.observe(nutritionSection);

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Libauth Has a New Logo

Optimizely Engineer Q&A: Kelly Walker, Frontend Engineer, East Coast

The Most Hilarious Code Comments Ever

5 Tips for a Clean CodeBase in React

Creating a dynamic “JSX” marker with react-leaflet

How to create a simple React js single page application?

All Things Being Equal…

Speedstudy Entry 1: Book 1 — YDKJS: ES6 and Beyond - Notes

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Yevgeniy Ivanov

Yevgeniy Ivanov

More from Medium

Agricultural autonomy and new ways of working

Performing Analysis of Meteorological Data

png

Ronald Reagan’s Clean Water Lesson

How To Rank Project Priority In Your Organization