Chapter 4 - Javascript
Chapter 4 - Javascript
Group presentation
Where Do Requirements Come From?
Revision on Requirements Engineering Activities
Software Requirements with Relevance to the Web
Principles for RE of Web Applications
Adapting RE Methods to Web Application Development.
Where Do Requirements Come From?
Where Do Requirements Come From?
Revision on Requirements Engineering Activities
Software Requirements with Relevance to the Web
Principles for RE of Web Applications
Adapting RE Methods to Web Application Development.
Revision on Requirements Engineering Activities
Software Requirements with Relevance to the Web
Principles for RE of Web Applications
Adapting RE Methods to Web Application Development.
Software Requirements with Relevance to the Web
Software Requirements with Relevance to the Web
Principles for RE of Web Applications
Adapting RE Methods to Web Application Development.
Principles for RE of Web Applications
Software Requirements with Relevance to the Web
Adapting RE Methods to Web Application Development.
Adapting RE Methods to Web Application Development.
• spaces, tabs, and newlines that appear in JavaScript programs are ignored.
• Semicolons are Optional (if each statement is on separate line).
• JavaScript is a
case-sensitive
language.
• Comments
Datatype
• JavaScript arrays
• support numbered indexing
• are written with square brackets.
• Array items are separated by commas.
Identifiers and Reserved Words
• You can also assign a value to the variable when you declare it.
• JS is untyped language. variable can hold a value of any data type
Variables
• var
• can be re-declared and updated
• You can use the variable before it is declared (called Hoisting)
• can NOT have block scope - Variables declared inside a { } block can be
accessed from outside the block
• Operator Precedence.
Conditional Statements
• if...else statement
• for/of - loops through the values of an iterable object (iterable data structures
such as Arrays, Strings, Maps, NodeLists)
Loop …