Question: Create an associative array called courses that stores a university department's course number as the key and an object as the value. The object has

Create an associative array called courses that stores a university department's course number as the key and an object as the value. The object has 3 properties: title, description, creditHours. Example courses:

160 Computer Science I, Develop algorithms for computers, 4.

125 Intro to Cybercrime, learn about computer security, 3.

250 - Datastructures, Algorithms and data structures, 3.

437 Cloud Computing Security, Learn secure coding in Javascript, 3.

Output the total number of courses in the courses object using Object.keys(). Then, write a for-in loop that displays the course number and title for only those courses that are 3 credit hours.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!