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.

Challenge [Access MultiDimensional Arrays With Indexes] Solving Bug

See original GitHub issue

Challenge Access MultiDimensional Arrays With Indexes has an issue.

User Agent is: Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36. Please describe how to reproduce this issue, and include links to screenshots if possible. I just used myData = 4 + 4 to get myData = 8 and i solved the challenge that way, if i’m not wrong that’s a bug soo…

My code:


// Setup
var myArray = [[1,2,3], [4,5,6], [7,8,9], [[10,11,12], 13, 14]];

// Only change code below this line.
var myData = myArray[0][0];
myData = 4 + 4;

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
erictleungcommented, Aug 7, 2016

@Pablo152 thanks for the issue. You are correct, this is a bug of sorts. Mmm to catch this kind of code, it might be difficult. We could add in two tests:

  1. The default code is var myData = myArray[0][0]; so we could check that they at least change the zeros to something else.
  2. Check that there is no myData = <some number> i.e. a regex for /myData = \d/ or something similar.

cc/ @FreeCodeCamp/issue-moderators

2reactions
BKinahancommented, Aug 14, 2016

@dhcodes said he wasn’t working on this, so I grabbed it up 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Access MultiDimensional Arrays With Indexes, freeCodeCamp ...
In this challenge we learn how to select values of arrays within arrays in javascript. The outter level array indexes go first in...
Read more >
Access Multi Dimensional Arrays With Indexes (Basic ...
Certification: JavaScript Algorithms and Data Structures Course: Basic JavaScript Lesson: Access Multi Dimensional Arrays With Indexes ...
Read more >
Access MultiDimensional Arrays With Indexes - JavaScript
Access MultiDimensional Arrays With Indexes - JavaScript Challenge ... I will give you another hint to help you solve the current challenge.
Read more >
C# Multidimensional Arrays Challenge (Example) - Treehouse
In the example output that the challenge shows, when maxFactor = 3, you end up with a 2-dimensional array that is 4 rows...
Read more >
Multidimensional Arrays in C / C++ - GeeksforGeeks
Accessing Elements of Two-Dimensional Arrays: Elements in Two-Dimensional arrays are accessed using the row indexes and column indexes.
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