return { fly() { isFlying = true; return this; }, land() { isFlying = false; return this; }, isFlying: () => isFlying }};JavaScript Factory Functions with ES6+7.1K31Eric ElliottAnton KozlovFollowJul 20, 2017 · 1 min readShould this also have …o, before fly() ?