4. Explain the purpose and use of programming concepts Flashcards
Arrey
A unique collection of variables that must be of the same type and are accessed using an index.
Function
A function is a piece of code that does one specific job
Methods
Classes also have methods, which are actions that the object can do. For example, a method can take input, generate output, and change data
Attributes
Depending on the programming language, an object can have its own attributes, or properties. For example, in JavaScript, an object is an entity with its own properties such as a cup.
Properties
Classes have properties, which are attributes that objects can have.
Variable
Identifier for a value that can change during program execution. Variables are usually declared with a particular data type.
Constants
A constant is like a container that holds values, but unlike a variable, constants never change—once they’re set, they’re set for good.