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.

Learner can erroneously change myArray by hand

See original GitHub issue

Challenge Modify Array Data With Indexes has an issue. This code passes the challenge when it shouldn’t:

var myArray = [3,2,3]; // erroneously changed by the learner from [1,2,3]
myArray[0] = 3;

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
willnwhitecommented, Jun 21, 2017

@erictleung I thought this too, but then I thought the learner could write:

var myArray = [45, 64, 99];
// Only change code below this line.
var myArray = [3, 64, 99];
...

So it’d also have to check that myArray isn’t declared again.

I noticed that @tommygebru wrote code above the line, as did the learner who prompted this issue, indicating they hadn’t read it. So I think that moving the line up, and changing it to also say “… and don’t declare myArray again.” may be all that is necessary.

0reactions
tommygebrucommented, Jun 21, 2017

@erictleung @willnwhite The instructions are rather bare, usually we have a lot of good reading material in this panel, this will be a good opportunity to update… will try a new issue soon!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Page 7: Modify Delivery of Instruction - IRIS Center
This is a qualitative adaptation and can be accomplished by altering: Instructional approach; Student response; Teacher feedback. The table below outlines some ...
Read more >
Ch 7 Learning Flashcards - Quizlet
In which form of learning does the learner need to be consciously aware that their behavior is changing? observational learning. Learning that occurs...
Read more >
Teaching Receptive Language Skills - PMC - NCBI - NIH
When the learner's hand moves, instructors should orient their gaze to the learner's hand rather than to the visual array. Common physical movement...
Read more >
Too much teaching, not enough learning: what is the solution?
If this is true, the curriculum must be changed to active methods that provide educational experiences designed to develop life-long learners ...
Read more >
Autism Q & A: Using a Least to Most Prompts Teaching Strategy
Answer: The least to most prompting procedure uses an array of prompts sequenced ... If the student does not perform the task, or...
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