Elemental Design Patterns David Stotts Computer Science Department UNC Chapel Hill Introduction to Programming (in JavaScript) 0. data (types, simple information) 1. data…