Drag the background!

Step 10. Removing Objects from Arrays

Click images to run the Worlds. In one World, hover makes the object change color, using similar code as before. In another World, click deletes the object (removes it from the array). In the third World, mouse drag makes objects but only keeps the last few of them in the array. Older objects are deleted.

As always, you can see the code and edit it to make changes.

World

Tutorial 7.5 (0)
Removing Objects from Arrays

World

Tutorial 7.5 (1)
Removing Objects from Arrays

World

Tutorial 7.5 (2)
Removing Objects from Arrays
The background is a program, showing the JavaScript graphics used on this site.
The globes light up when you log in.
 
Font:

Users retain ownership of user content.

Platforms      Stats      The name      Terms and conditions

Call for partners      Contact

Call for partners!
Ancient Brain is looking for a partner to co-write a JavaScript coding book for schools, to be used worldwide. This would be a course for students in learning to code from scratch. The book and course will be integrated into the Ancient Brain site. This is an opportunity for someone looking to develop a course and textbook to partner with a site to promote it. Read more.