Quantcast
Channel: Why is this not working?(Refactor Global Variables Out of Functions)
Browsing all 11 articles
Browse latest View live

Why is this not working?(Refactor Global Variables Out of Functions)

@roi29111 wrote: Tell us what’s happening: Your code so far // the global variable var bookList = ["The Hound of the Baskervilles", "On The Electrodynamics of Moving Bodies", "Philosophiæ Naturalis...

View Article



Image may be NSFW.
Clik here to view.

Why is this not working?(Refactor Global Variables Out of Functions)

@RandellDawson wrote: You have a few issues. roi29111: // Add your code below this line function add (arr,bookName) { let newarr=arr newarr.push(bookname) // JavaScript is case-sensitive return...

View Article

Why is this not working?(Refactor Global Variables Out of Functions)

@roi29111 wrote: thank you,ill just restart the whole section i think… i didnt code for two days and i feel lost lol,forgot so many stuff . Read full topic

View Article

Why is this not working?(Refactor Global Variables Out of Functions)

@roi29111 wrote: ok so after taking your advice Randell , i googled why let newarr=arr doesnt work. ill leave a link for that in here in case someone else does the same mistake...

View Article

Why is this not working?(Refactor Global Variables Out of Functions)

@RandellDawson wrote: FYI - In the Basic Data Structures section, there is a challenge named Copy Array Items Using slice which explains how to make a copy (shallow) of an array. Read full topic

View Article


Why is this not working?(Refactor Global Variables Out of Functions)

Tell us what’s happening: Your code so far // the global variable var bookList = ["The Hound of the Baskervilles", "On The Electrodynamics of Moving Bodies", "Philosophiæ Naturalis Principia...

View Article

Image may be NSFW.
Clik here to view.

Why is this not working?(Refactor Global Variables Out of Functions)

You have a few issues. roi29111: // Add your code below this line function add (arr,bookName) { let newarr=arr newarr.push(bookname) // JavaScript is case-sensitive return newarr; // Add your code...

View Article

Why is this not working?(Refactor Global Variables Out of Functions)

thank you,ill just restart the whole section i think… i didnt code for two days and i feel lost lol,forgot so many stuff . Read full topic

View Article


Why is this not working?(Refactor Global Variables Out of Functions)

ok so after taking your advice Randell , i googled why let newarr=arr doesnt work. ill leave a link for that in here in case someone else does the same mistake...

View Article


Why is this not working?(Refactor Global Variables Out of Functions)

FYI - In the Basic Data Structures section, there is a challenge named Copy Array Items Using slice which explains how to make a copy (shallow) of an array. Read full topic

View Article

Why is this not working?(Refactor Global Variables Out of Functions)

Read full topic

View Article
Browsing all 11 articles
Browse latest View live




Latest Images