tanzie1313 / js-arrays-lab

0 stars 0 forks source link

Remove console.log #1

Open DigitalPhoneme opened 3 weeks ago

DigitalPhoneme commented 3 weeks ago

https://github.com/tanzie1313/js-arrays-lab/blob/927a5d14a996d6175799bb52a9243928007ac415/app.js#L36

Currently, foods.unshift('taco') returns the new length of the array, not the array itself. You should remove console.log(foods.unshift('taco')) and instead log the foods array directly:

foods.unshift('taco'); console.log('Exercise 3 result:', foods);

tanzie1313 commented 3 weeks ago

Cool! Thank you! I think that was a typo on my part. Who knows bc I try to check to make sure what I write works with console log(s). Anyhow thanks I pushed back up to git. ? I believe I did it right. Made the changes. Then in terminal git commit -m “changes to homework” Then, git push origin main. (It says everything is up to date) Let me know if that is incorrect how to push it back. Sorry! Learning I’ll get it though

Thank you! Tanzie

On Tue, Oct 15, 2024 at 9:19 PM Alo Salazar @.***> wrote:

https://github.com/tanzie1313/js-arrays-lab/blob/927a5d14a996d6175799bb52a9243928007ac415/app.js#L36

Currently, foods.unshift('taco') returns the new length of the array, not the array itself. You should remove console.log(foods.unshift('taco')) and instead log the foods array directly:

foods.unshift('taco'); console.log('Exercise 3 result:', foods);

— Reply to this email directly, view it on GitHub https://github.com/tanzie1313/js-arrays-lab/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/BLI5V37YS4Q6PD6IP7E4KG3Z3XSLLAVCNFSM6AAAAABQARAJKSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU4TANJWGMYTGNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>