Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

objects and arrays #8

Open
oventi opened this issue Jun 16, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@oventi
Copy link
Owner

commented Jun 16, 2019

play around with literal objects and arrays and create a single js file that showcases object creation, accessing properties of objects, array creation, accessing properties of arrays and operations on objects and arrays, for example, adding the property of one object to a value of an array.

Create the objects and the arrays with values you want.

Goals

  • create at least 2 objects
  • create at least 3 arrays (different types such as strings and numbers, objects)
  • show how to access the property of objects
  • show how to access the values of arrays
  • add one property of an object to a value of an array
  • multiply a value of an array to a property of an object

use console.log to output the results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.