01:198:170 Chapter Notes - Chapter 17: Boolean Expression, Value Type, Order Of Operations
Introduction to JavaScript
●Programming Concepts
○Programming is the act of formulating an algorithm or program
■Algorithm is a systematic process that produces a specified result
■A program is an algorithm that is specialized to specified conditions and/ or
assumptions
○Concepts:
■Names (including rules for identifiers and case sensitivity), values, and variables
■Names bound to values
■Think of names as titles that have changing values
■Ex: name: US president: now, barack obama but before,
bill clinton, etc
■File name: EnglishPaper.doc changes its value every
time you save a version of ur composition
■In computing, the name is always separable from the value, and
the value can be changed
■Enables change!!
■Names are called variables
(their values VARY)
■Command to change the value of a variable is called assignment
■Letter sequence that makes up a variable's name is the identifier
■Must begin with a letter, followed by any sequence of letters,
numerals (digits 0-9), or underscore
■Underscore can be used as a word separator
■ONLY LETTERS, NUMBERS(digits btwn 0-9), AND UNDERSCORE
■CANNOT contain spaces
■Ex of valid identifiers:
■X
■x
■Ru4it
■nineteen_eighty_four
■Tine_O_Day
■Identifeirs_can_B_long_but_if_so_typing_them__canbe
_a_pain
■oO00Oo
■elizaBETH
■Declaring variables
is when you state what variables will be used
■Ex: to write a computation that computes the area of a circle
given its radius, need variables area and radius, so
var area, radius;
●Statement terminator
is the ;
○Terminate every statement w a ;
taupebee294 and 9 others unlocked
9
01:198:170 Full Course Notes
Verified Note
9 documents
Document Summary
Programming is the act of formulating an algorithm or program. Algorithm is a systematic process that produces a specified result. A program is an algorithm that is specialized to specified conditions and/ or assumptions. Names (including rules for identifiers and case sensitivity), values, and variables. Think of names as titles that have changing values. Ex: name: us president: now, barack obama but before, bill clinton, etc. File name: englishpaper. doc changes its value every time you save a version of ur composition. In computing, the name is always separable from the value, and the value can be changed. Names are called variables (their values vary) Letter sequence that makes up a variable"s name is the identifier. Command to change the value of a variable is called assignment. Must begin with a letter, followed by any sequence of letters, numerals (digits 0-9), or underscore. Underscore can be used as a word separator. Only letters, numbers(digits btwn 0-9), and underscore.