question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Waypoint: Make Object Properties Private - Needs Rewrite

See original GitHub issue

Challenge 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:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:18 (5 by maintainers)

github_iconTop GitHub Comments

9reactions
QuincyLarsoncommented, Jun 25, 2016

@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.

4reactions
ashish1500616commented, Nov 5, 2016

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. screen shot 2016-11-05 at 6 01 44 pm

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found