Ask coding questions

← Back to all posts
1
plase help how do i do this
faziz6006 (2)

Exercise Three: You will be given an array called 'tasks'
// Using an array method, remove the task from the end of the array

Answered by vedprad1 (477) [earned 5 cycles]
View Answer
Commentshotnewtop
3
vedprad1 (477)
function exerciseThree(tasks) {
  tasks.pop();
}

Do similar things with the other exercises.

If this answers your question, please check the checkmark on the left side of this message. Thanks and Good Luck!

1
faziz6006 (2)

@vedprad1 i put:
function exerciseTwo (snacks){
snacks.push(chips);
}

but it says thats wrong and i should "Should remove a task from the end of the array"

1
faziz6006 (2)

@vedprad1 i dont know if this is too much but im really new to this, can we chat elsewhere? fb or email? i just got accepted to lambda school cuz i didnt wana do medical cuz my parents are forcing me ( yes middle eastern parents and med school stereo types are true lol )

2
vedprad1 (477)

@faziz6006 : Make sure you put the right code in the correct exercise number. You put in exerciseTwo's code into Exercise Three.

1
faziz6006 (2)

@vedprad1 i did now it says u need to add a number to end of array or something bro im so confused lolol is there a chat room i can go to to talk to ppl to ask questions

2
vedprad1 (477)

@faziz6006 : I think now you are doing Exercise Four. Just make sure you know which function goes where.

Also, this is the ask 'chatroom.'

1
faziz6006 (2)

@vedprad1 got it!
you are amazing dude thanks so much
, if u dont mind me asking, how long did it take u to learn code , is it hard? is there any place i can get help with my precourse material ?

2
vedprad1 (477)

@faziz6006

  1. Well, I've been coding for, like, five years now, throughout my last two years of elementary school and three years of middle school.
  2. It depends. Usually, front end comes easily to me, but I stumble a lot in back end.
  3. A really good resource is w3schools That is where I learned a lot of my skills. You should try it.

Also, it would be great if you marked my answer as correct. Thanks!

1
faziz6006 (2)

@vedprad1 wait, your in middle school?????????? thats . oh man , im in college dude and i just started, but i have to do this or else lol

2
vedprad1 (477)

If you are using JavaScript, you can use the pop() method.


If you are using Java, you can make a new array with a smaller size and copy the elements from the original array to the new one except the last element.

If this answers your question, please check the checkmark on the left side of this message. Thanks and Good Luck!