JavaScript: Arrays, Sets, & Maps

Post Reply
User avatar
Jason
Site Admin
Posts: 809
Joined: Tue Jul 01, 2025 10:13 am

Code: Select all

// array_set_map_decleration.js

const array_of_some_colors = ["red", 'blue", "green", "yellow", "purple", "brown", "orange", 'black", "white", "grey", "pink"]

const set_of_some_lowercase_letters = new Set(["a", "d", "b", "q", "m"])

const map_of_some_NFL_teams = new Map(["Baltimore", Ravens], ["Houston", Texans])


 

POSTREACT(ions) SUMMARY

Post Reply