Technology-Chapter 17 Flashcards
Programming
is the act of formulating an algorithm or program, it entails developing a systemic means of solving a problem so that an agent can follow the instructions and produce the intended result for every input, every time.
Adele Koss
one of the first professional programmers, summarized programing the Univac I in 1950.
Java Script
a modern programming language that is especially effective for Web applications
Names are seen as titles that having
changing values
Names are called ,
variables, a term that reminds us that their values vary
assignment
most commonly used programing language operation is the command to change the value of a variable, that command is this
addresses
memory locations that have different values at different times
identifier
the letter sequence that makes up a variable’s name, and can not contain any spaces, and are case sensitive
declaring variables
first thing you do when writing any program is to state what variables will be used, and we do it using a command called declaration
statement terminator in Java Script is
a semicolon
every variable used in a program must ..
be declared
undefined
when the names is declared but there is no value assigned yet
initialize
when javascript allows us to set the initial value as part of the declaration, it does this to the variable
three types of data in java script programs
numbers, strings, and Booleans
numbers
the values assigned to the variables
strings
sequences of keyboard characters, can initialize a declaration
rules for writing strings in JavaScript
- surrounded by quotes,
- the enter, backspace,tab, and \ key are not allowed inside a quote
- any number of characters are allowed
- double quoted can contain single quoted and vice versa
- apostrophe is the same as a single quote
- empty string-min. number of characters is zero
literals
the numbers and strings
Boolean Value (Booleans)
only two values, true or false
data types or value types
different kinds of a programming language
meta-brackets
to separate language that is being defined you use angle brackets called this
assignment statement
changes a variable’s value , it is the workhorse of programing
in the computer, an assignment statement causes the value in the memory locations corresponding to the variable to be
replaced by the new value resulting from the expression
expression
describe the means of preforming the actual computation
operators
expressions are built off of this, are the standard arithmetic operations
the symbols used for basic arithmetic are
arithmetic operators
Binary operators
operate on two values called operands, and unary operators
modulus (mod) operation
divides two integers and returns the remainder
relational operators
are used to make comparisons between numerical values
operator overload
the use of an operator with different data types
concatenation
when we use + with strings , it joins the stings by the operation of this
conditional statement
to test numbers and strings easier
compound statement
when we group the statements by surrounding them in curly brackets which then collects them to become a single statement