Challenge [Access MultiDimensional Arrays With Indexes] Solving Bug
See original GitHub issueChallenge 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:
- Created 7 years ago
- Comments:10 (7 by maintainers)
Top 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 >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
@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:
var myData = myArray[0][0];
so we could check that they at least change the zeros to something else.myData = <some number>
i.e. a regex for/myData = \d/
or something similar.cc/ @FreeCodeCamp/issue-moderators
@dhcodes said he wasn’t working on this, so I grabbed it up 😄