Comments (6)
@raq929 says: this used to be run without webpack
, and now it is. That may be the cause of the issue.
from js-function-context-this.
UPDATE: firstName
and lastName
needs to be changed to var
s in order for lines 42 and 45 to produce Peter Ally
from js-function-context-this.
@raq929 says: this used to be run without webpack, and now it is. That may be the cause of the issue.
Not likely.
UPDATE: firstName and lastName needs to be changed to vars in order for lines 42 and 45 to produce Peter Ally
That seems like an appropriate fix, but not the right solution, if that makes sense.
To put it another way, if that's an actual fix, then the example should be reworked to use let
and const
appropriately.
from js-function-context-this.
Agreed. (This issue is weird because we were figuring it out in real time.)
So, basically, this example needs to be reworked. It was not a webpack issue, it was an updating to ES6 issue. And now the expected results in the file are not the actual results.
from js-function-context-this.
http://www.2ality.com/2015/02/es6-scoping.html
from js-function-context-this.
We have now updated all examples to ES6, so this is out of date.
from js-function-context-this.
Related Issues (20)
- Change 2nd thatsNoMoon to endor HOT 1
- StarWars analogy pushed too far? HOT 4
- Constructor Invocation behaves differently in Chrome HOT 7
- In the summary HOT 1
- .age should be .handicap
- Rework to follow `talk-template`? HOT 4
- Change event handlers to use jQuery HOT 4
- Review scope HOT 4
- Confusing info HOT 5
- Address `'use strict';` HOT 1
- Clarify `global` versus `window` ?
- Update all lab starter code to ES6 HOT 1
- Change golf handicaps
- Change formatting in README HOT 1
- Jquery is not loading properly HOT 1
- Remove code samples from README HOT 1
- Fix this link
- Simplify Global object and scope section
- Add objective or remove section from lesson
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-function-context-this.