Please turn JavaScript on to use this site.
Worlds
Minds
Users
Uploads
JS code
Search
Worlds
Minds
Users
Uploads
JS code
Intro
Introduction
Features
Definitions
Principles
The AI model
Teaching
Register a class
Learn
Getting started
P5 tutorial
Three.js tutorial
Coding course
Coding course II
Coding for kids
WebGL course
AI exercises
Browse
Starter Worlds
Editor's Choice
Showcase Worlds
Multi-user Worlds
Random Worlds
Advanced search
Docs
Docs
API docs
Register
Register
Forgot password
Login
Step 9. JavaScript Objects
Daniel Shiffman introduces "objects" as containers for multiple variables. The first World has simple variables. The second World does the same thing but using variables inside an object.
Video
From:
Tutorial 2.3: JavaScript Objects
World
Tutorial 2.3 (0)
JavaScript without Objects
Clone and Edit
World
Tutorial 2.3 (1)
JavaScript with Objects
Clone and Edit
Previous
Next: Step 10 of 17
Tweet this step: