Waypoint: Make Object Properties Private - Needs Rewrite
See original GitHub issueChallenge Waypoint: Make Object Properties Private has an issue.
I’ve noticed that we’re getting a lot of questions on this one in the help channels and elsewhere. Vast majority of campers who are asking just don’t know what to do at all. This either needs a massive rewrite or to be broken out into several waypoints.
I think the issue is that there are too many new concepts introduced with no practical explanation. There is no example code showing var privateProperty
.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:18 (5 by maintainers)
Top Results From Across the Web
Make Object Properties Private : Clueless - JavaScript
This is all I could come up with. Can someone help me with this waypoint? var Car = function() { // this is...
Read more >objects using their own unique waypoints array - Stack Overflow
You need to create a new array of waypoints each time you create one from the prefabricated object. You don't show your Instantiate...
Read more >Simple Waypoint System (SWS) - Move objects along paths
The tween moving your object (splineMove.tween) has an ElapsedPercentage property, which returns the percentage where your object is ...
Read more >Eden Editor: Setting Attributes - Bohemia Interactive Community
Setting Entity Attributes. To set an attribute, you need to know it is property and value type. Tables below will help you with...
Read more >Route generation | Navigation SDK | Android - Mapbox docs
You can generate a route from the Mapbox Directions API using the Navigation SDK by providing both an origin and a destination Point...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@manicmarvin Frankly, many of these challenges need to be re-written. I don’t think they will seem all that complicated if we do a better job of explaining them.
var Bike = function() {
// Only change code below this line. var gear=0; this.setGear=function(change){ gear=change; }; this.getGear=function() { return gear; };
}; i got this code passed…bassically we are setting /change/ value in the private /gear/ variable using setGear method and then returning through getGear method.