SlideShare ist ein Scribd-Unternehmen logo
1 von 237
Downloaden Sie, um offline zu lesen
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Introduction to JavaScript
Apostolos Syropoulos
Xanthi, Greece
asyropoulos@yahoo.com
Introduction to JavaScript for members of the
Erasmus+ founded project GAMES
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Presentation Outline
1 Programming Languages
2 Basics of JavaScript
3 Expressions and Operators
4 Basic Commands
5 Defining New Functions
6 Finale
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is a Programming Language?
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is a Programming Language?
A formalism or formal notion used to instruct a computer to
perform a computational task.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is a Programming Language?
A formalism or formal notion used to instruct a computer to
perform a computational task.
Roughly, a computational task is an abstract, mathematical in a
sense, task.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is a Programming Language?
A formalism or formal notion used to instruct a computer to
perform a computational task.
Roughly, a computational task is an abstract, mathematical in a
sense, task.
Philosophical question: Is falling in love a computational task?
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is a Programming Language?
A formalism or formal notion used to instruct a computer to
perform a computational task.
Roughly, a computational task is an abstract, mathematical in a
sense, task.
Philosophical question: Is falling in love a computational task?
Surprisingly, computationalism—the view that mental states are
computational states—has many followers.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is a Programming Language?
A formalism or formal notion used to instruct a computer to
perform a computational task.
Roughly, a computational task is an abstract, mathematical in a
sense, task.
Philosophical question: Is falling in love a computational task?
Surprisingly, computationalism—the view that mental states are
computational states—has many followers.
On the other hand, Jaak Panksepp asks: Could you compute me
an orgasm?
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is a Programming Language?
A formalism or formal notion used to instruct a computer to
perform a computational task.
Roughly, a computational task is an abstract, mathematical in a
sense, task.
Philosophical question: Is falling in love a computational task?
Surprisingly, computationalism—the view that mental states are
computational states—has many followers.
On the other hand, Jaak Panksepp asks: Could you compute me
an orgasm?
Back to business: Computers can calculate and enumerate and
that’s what we do with programming languages.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is a Programming Language?
A formalism or formal notion used to instruct a computer to
perform a computational task.
Roughly, a computational task is an abstract, mathematical in a
sense, task.
Philosophical question: Is falling in love a computational task?
Surprisingly, computationalism—the view that mental states are
computational states—has many followers.
On the other hand, Jaak Panksepp asks: Could you compute me
an orgasm?
Back to business: Computers can calculate and enumerate and
that’s what we do with programming languages.
Niklaus Wirth did not like the term programming language.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Characteristics of Programming Languages
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Characteristics of Programming Languages
How computational tasks are described?
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Characteristics of Programming Languages
How computational tasks are described?
By a sequence of commands? The language is imperative.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Characteristics of Programming Languages
How computational tasks are described?
By a sequence of commands? The language is imperative.
By objects and their interactions? The language is
object-oriented.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Characteristics of Programming Languages
How computational tasks are described?
By a sequence of commands? The language is imperative.
By objects and their interactions? The language is
object-oriented.
By functions and their composition? The language is functional.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Characteristics of Programming Languages
How computational tasks are described?
By a sequence of commands? The language is imperative.
By objects and their interactions? The language is
object-oriented.
By functions and their composition? The language is functional.
By a set of sentences in logical form? Then it is a logic
programming language
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Characteristics of Programming Languages
How computational tasks are described?
By a sequence of commands? The language is imperative.
By objects and their interactions? The language is
object-oriented.
By functions and their composition? The language is functional.
By a set of sentences in logical form? Then it is a logic
programming language
Specifying a programming language means to: describe its
syntax and its semantics.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Characteristics of Programming Languages
How computational tasks are described?
By a sequence of commands? The language is imperative.
By objects and their interactions? The language is
object-oriented.
By functions and their composition? The language is functional.
By a set of sentences in logical form? Then it is a logic
programming language
Specifying a programming language means to: describe its
syntax and its semantics.
Syntax: the way we arrange “linguistic” elements in a program.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Characteristics of Programming Languages
How computational tasks are described?
By a sequence of commands? The language is imperative.
By objects and their interactions? The language is
object-oriented.
By functions and their composition? The language is functional.
By a set of sentences in logical form? Then it is a logic
programming language
Specifying a programming language means to: describe its
syntax and its semantics.
Syntax: the way we arrange “linguistic” elements in a program.
Semantics: the computational effect of each structure.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Some popular programming languages
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Some popular programming languages
Old languages:
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Some popular programming languages
Old languages: FORTRAN,
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Some popular programming languages
Old languages: FORTRAN, COBOL,
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Some popular programming languages
Old languages: FORTRAN, COBOL, PL/1,
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Some popular programming languages
Old languages: FORTRAN, COBOL, PL/1, Algol68,
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Some popular programming languages
Old languages: FORTRAN, COBOL, PL/1, Algol68, BASIC,
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Some popular programming languages
Old languages: FORTRAN, COBOL, PL/1, Algol68, BASIC, LISP,
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Some popular programming languages
Old languages: FORTRAN, COBOL, PL/1, Algol68, BASIC, LISP,
Pascal.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Some popular programming languages
Old languages: FORTRAN, COBOL, PL/1, Algol68, BASIC, LISP,
Pascal.
Timeless languages:
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Some popular programming languages
Old languages: FORTRAN, COBOL, PL/1, Algol68, BASIC, LISP,
Pascal.
Timeless languages: C,
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Some popular programming languages
Old languages: FORTRAN, COBOL, PL/1, Algol68, BASIC, LISP,
Pascal.
Timeless languages: C, C++,
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Some popular programming languages
Old languages: FORTRAN, COBOL, PL/1, Algol68, BASIC, LISP,
Pascal.
Timeless languages: C, C++, Ada,
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Some popular programming languages
Old languages: FORTRAN, COBOL, PL/1, Algol68, BASIC, LISP,
Pascal.
Timeless languages: C, C++, Ada, Prolog,
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Some popular programming languages
Old languages: FORTRAN, COBOL, PL/1, Algol68, BASIC, LISP,
Pascal.
Timeless languages: C, C++, Ada, Prolog, SML.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Some popular programming languages
Old languages: FORTRAN, COBOL, PL/1, Algol68, BASIC, LISP,
Pascal.
Timeless languages: C, C++, Ada, Prolog, SML.
Modern languages:
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Some popular programming languages
Old languages: FORTRAN, COBOL, PL/1, Algol68, BASIC, LISP,
Pascal.
Timeless languages: C, C++, Ada, Prolog, SML.
Modern languages: Java,
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Some popular programming languages
Old languages: FORTRAN, COBOL, PL/1, Algol68, BASIC, LISP,
Pascal.
Timeless languages: C, C++, Ada, Prolog, SML.
Modern languages: Java, JavaScript,
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Some popular programming languages
Old languages: FORTRAN, COBOL, PL/1, Algol68, BASIC, LISP,
Pascal.
Timeless languages: C, C++, Ada, Prolog, SML.
Modern languages: Java, JavaScript, Perl,
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Some popular programming languages
Old languages: FORTRAN, COBOL, PL/1, Algol68, BASIC, LISP,
Pascal.
Timeless languages: C, C++, Ada, Prolog, SML.
Modern languages: Java, JavaScript, Perl, Python,
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Some popular programming languages
Old languages: FORTRAN, COBOL, PL/1, Algol68, BASIC, LISP,
Pascal.
Timeless languages: C, C++, Ada, Prolog, SML.
Modern languages: Java, JavaScript, Perl, Python, Ruby,
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Some popular programming languages
Old languages: FORTRAN, COBOL, PL/1, Algol68, BASIC, LISP,
Pascal.
Timeless languages: C, C++, Ada, Prolog, SML.
Modern languages: Java, JavaScript, Perl, Python, Ruby, C#,
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Some popular programming languages
Old languages: FORTRAN, COBOL, PL/1, Algol68, BASIC, LISP,
Pascal.
Timeless languages: C, C++, Ada, Prolog, SML.
Modern languages: Java, JavaScript, Perl, Python, Ruby, C#,
Haskell.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Some popular programming languages
Old languages: FORTRAN, COBOL, PL/1, Algol68, BASIC, LISP,
Pascal.
Timeless languages: C, C++, Ada, Prolog, SML.
Modern languages: Java, JavaScript, Perl, Python, Ruby, C#,
Haskell.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is Programming?
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is Programming?
Programming is the mental activity by which we express the
solution to a given (mathematical) problem in some
programming language.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is Programming?
Programming is the mental activity by which we express the
solution to a given (mathematical) problem in some
programming language.
The difficult part is to solve the problem with specific tools.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is Programming?
Programming is the mental activity by which we express the
solution to a given (mathematical) problem in some
programming language.
The difficult part is to solve the problem with specific tools.
Programming is not something you learn by following a recipe or
a method.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is Programming?
Programming is the mental activity by which we express the
solution to a given (mathematical) problem in some
programming language.
The difficult part is to solve the problem with specific tools.
Programming is not something you learn by following a recipe or
a method.
Programming is both a craft and a science.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is Programming?
Programming is the mental activity by which we express the
solution to a given (mathematical) problem in some
programming language.
The difficult part is to solve the problem with specific tools.
Programming is not something you learn by following a recipe or
a method.
Programming is both a craft and a science.
It is a craft (or art!) because there are no rules of thumb that one
can follow to solve a problem.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is Programming?
Programming is the mental activity by which we express the
solution to a given (mathematical) problem in some
programming language.
The difficult part is to solve the problem with specific tools.
Programming is not something you learn by following a recipe or
a method.
Programming is both a craft and a science.
It is a craft (or art!) because there are no rules of thumb that one
can follow to solve a problem.
A programmer is a scientist if mathematicians are scientists.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is Programming?
Programming is the mental activity by which we express the
solution to a given (mathematical) problem in some
programming language.
The difficult part is to solve the problem with specific tools.
Programming is not something you learn by following a recipe or
a method.
Programming is both a craft and a science.
It is a craft (or art!) because there are no rules of thumb that one
can follow to solve a problem.
A programmer is a scientist if mathematicians are scientists.
Intuition plays a very important when solving a problem.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is Programming?
Programming is the mental activity by which we express the
solution to a given (mathematical) problem in some
programming language.
The difficult part is to solve the problem with specific tools.
Programming is not something you learn by following a recipe or
a method.
Programming is both a craft and a science.
It is a craft (or art!) because there are no rules of thumb that one
can follow to solve a problem.
A programmer is a scientist if mathematicians are scientists.
Intuition plays a very important when solving a problem.
The implementation of a solution requires the knowledge of
common techniques and practicers.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Steps Involved in Programming
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Steps Involved in Programming
Defining the problem.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Steps Involved in Programming
Defining the problem.
Outlining and structuring the solution.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Steps Involved in Programming
Defining the problem.
Outlining and structuring the solution.
Selecting solution methods.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Steps Involved in Programming
Defining the problem.
Outlining and structuring the solution.
Selecting solution methods.
Coding.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Steps Involved in Programming
Defining the problem.
Outlining and structuring the solution.
Selecting solution methods.
Coding.
Debugging.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Steps Involved in Programming
Defining the problem.
Outlining and structuring the solution.
Selecting solution methods.
Coding.
Debugging.
Testing and verifying.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Steps Involved in Programming
Defining the problem.
Outlining and structuring the solution.
Selecting solution methods.
Coding.
Debugging.
Testing and verifying.
Documenting.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Steps Involved in Programming
Defining the problem.
Outlining and structuring the solution.
Selecting solution methods.
Coding.
Debugging.
Testing and verifying.
Documenting.
Maintaining the program.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is JavaScript?
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is JavaScript?
It is an object-oriented programming language initially designed
and implemented by Netscape.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is JavaScript?
It is an object-oriented programming language initially designed
and implemented by Netscape.
The language is the most widely used language for client-side
scripting of web pages.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is JavaScript?
It is an object-oriented programming language initially designed
and implemented by Netscape.
The language is the most widely used language for client-side
scripting of web pages.
HTML5 and all relatively older versions of HTML support tge
<script>
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is JavaScript?
It is an object-oriented programming language initially designed
and implemented by Netscape.
The language is the most widely used language for client-side
scripting of web pages.
HTML5 and all relatively older versions of HTML support tge
<script>
JavaScript can be used to make dynamic web pages.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is JavaScript?
It is an object-oriented programming language initially designed
and implemented by Netscape.
The language is the most widely used language for client-side
scripting of web pages.
HTML5 and all relatively older versions of HTML support tge
<script>
JavaScript can be used to make dynamic web pages.
JavaScript and Java are object-oriented languages but that is
their only similarity.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Adding JavaScript Code to HTML Content
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Adding JavaScript Code to HTML Content
Here is how we can embed JavaScript code:
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Adding JavaScript Code to HTML Content
Here is how we can embed JavaScript code:
<script>
JavaScript commands…
</script>
<noscript> WARNING</noscript>
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Adding JavaScript Code to HTML Content
Here is how we can embed JavaScript code:
<script>
JavaScript commands…
</script>
<noscript> WARNING</noscript>
Alternatively
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Adding JavaScript Code to HTML Content
Here is how we can embed JavaScript code:
<script>
JavaScript commands…
</script>
<noscript> WARNING</noscript>
Alternatively
…
<head>
<title>My Page</title>
<script src="common.js">
</script>
</head>
<body>
…
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
A Complete Example
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
A Complete Example
Here i a complete example:
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
A Complete Example
Here i a complete example:
<!DOCTYPE html>
<html> <head>
<meta charset="UTF-8">
<title>Example</title>
</head><body>
<script>
document.write("Hello, net!")
</script>
<noscript>No JavaScript support.</noscript>
<p>That's all, folks.</p>
</body> </html>
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
A Complete Example
Here i a complete example:
<!DOCTYPE html>
<html> <head>
<meta charset="UTF-8">
<title>Example</title>
</head><body>
<script>
document.write("Hello, net!")
</script>
<noscript>No JavaScript support.</noscript>
<p>That's all, folks.</p>
</body> </html>
Open your text-editor, type the code, save the file and open it with
your browser.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Values
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Values
Numbers, that is, quantities like 41 or 3.14159.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Values
Numbers, that is, quantities like 41 or 3.14159.
Boolean (logical) values, that is, the values true and false.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Values
Numbers, that is, quantities like 41 or 3.14159.
Boolean (logical) values, that is, the values true and false.
Sequences of character like "Hello!" that are known as strings.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Values
Numbers, that is, quantities like 41 or 3.14159.
Boolean (logical) values, that is, the values true and false.
Sequences of character like "Hello!" that are known as strings.
A string must be enclosed in either single or double quotation
marks, for instance, "John's girlfriend." or
'Mary came!'.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Values
Numbers, that is, quantities like 41 or 3.14159.
Boolean (logical) values, that is, the values true and false.
Sequences of character like "Hello!" that are known as strings.
A string must be enclosed in either single or double quotation
marks, for instance, "John's girlfriend." or
'Mary came!'.
The value null, which denotes a no value.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Values
Numbers, that is, quantities like 41 or 3.14159.
Boolean (logical) values, that is, the values true and false.
Sequences of character like "Hello!" that are known as strings.
A string must be enclosed in either single or double quotation
marks, for instance, "John's girlfriend." or
'Mary came!'.
The value null, which denotes a no value.
The value undefined, which denotes an undefined value.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Variables
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Variables
A variable is a name that is used to designate a value.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Variables
A variable is a name that is used to designate a value.
In mathematics we write 𝜋 to designate the number
3.1415926535897 ….
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Variables
A variable is a name that is used to designate a value.
In mathematics we write 𝜋 to designate the number
3.1415926535897 ….
A variable is actually the name of some storage location where a
value is stored.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Variables
A variable is a name that is used to designate a value.
In mathematics we write 𝜋 to designate the number
3.1415926535897 ….
A variable is actually the name of some storage location where a
value is stored.
Variables do not designate the same value but time passes may
designate a different value.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Variables
A variable is a name that is used to designate a value.
In mathematics we write 𝜋 to designate the number
3.1415926535897 ….
A variable is actually the name of some storage location where a
value is stored.
Variables do not designate the same value but time passes may
designate a different value.
Think of a process that counts objects. In different times, it will
hold different values.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Variables
A variable is a name that is used to designate a value.
In mathematics we write 𝜋 to designate the number
3.1415926535897 ….
A variable is actually the name of some storage location where a
value is stored.
Variables do not designate the same value but time passes may
designate a different value.
Think of a process that counts objects. In different times, it will
hold different values.
The first character of the name of a variable must be a letter
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Variables
A variable is a name that is used to designate a value.
In mathematics we write 𝜋 to designate the number
3.1415926535897 ….
A variable is actually the name of some storage location where a
value is stored.
Variables do not designate the same value but time passes may
designate a different value.
Think of a process that counts objects. In different times, it will
hold different values.
The first character of the name of a variable must be a letter
If there are more characters in a name they should be letters,
digits, or the symbol _ (underscore).
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Using Variables
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Using Variables
A variable can be introduced with an assignment or a declaration.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Using Variables
A variable can be introduced with an assignment or a declaration.
Assignment: variable = value.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Using Variables
A variable can be introduced with an assignment or a declaration.
Assignment: variable = value.
Declaration: var variable.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Using Variables
A variable can be introduced with an assignment or a declaration.
Assignment: variable = value.
Declaration: var variable.
Thus the command x = 3 assigns the value 3 to variable x.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Using Variables
A variable can be introduced with an assignment or a declaration.
Assignment: variable = value.
Declaration: var variable.
Thus the command x = 3 assigns the value 3 to variable x.
The command x = x + 1 assigns the current value of x plus 1
to variable x.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Using Variables
A variable can be introduced with an assignment or a declaration.
Assignment: variable = value.
Declaration: var variable.
Thus the command x = 3 assigns the value 3 to variable x.
The command x = x + 1 assigns the current value of x plus 1
to variable x.
The command var y declares variable y and its value becomes
undefined.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Using Variables
A variable can be introduced with an assignment or a declaration.
Assignment: variable = value.
Declaration: var variable.
Thus the command x = 3 assigns the value 3 to variable x.
The command x = x + 1 assigns the current value of x plus 1
to variable x.
The command var y declares variable y and its value becomes
undefined.
Find the final values of the various variables after these
commands have been executed.
x=4
y=6
z=2*x // * denotes multiplication
x=x+1
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Comparisons
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Comparisons
valueA @ valueB, where @ is a comparison operator.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Comparisons
valueA @ valueB, where @ is a comparison operator.
The standard comparison operators are:
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Comparisons
valueA @ valueB, where @ is a comparison operator.
The standard comparison operators are:
== (equal to),
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Comparisons
valueA @ valueB, where @ is a comparison operator.
The standard comparison operators are:
== (equal to),
!= (not equal to),
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Comparisons
valueA @ valueB, where @ is a comparison operator.
The standard comparison operators are:
== (equal to),
!= (not equal to),
< (less than),
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Comparisons
valueA @ valueB, where @ is a comparison operator.
The standard comparison operators are:
== (equal to),
!= (not equal to),
< (less than),
> (greater than),
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Comparisons
valueA @ valueB, where @ is a comparison operator.
The standard comparison operators are:
== (equal to),
!= (not equal to),
< (less than),
> (greater than),
<= (less than or equal to), and
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Comparisons
valueA @ valueB, where @ is a comparison operator.
The standard comparison operators are:
== (equal to),
!= (not equal to),
< (less than),
> (greater than),
<= (less than or equal to), and
>= (greater than or equal to).
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Comparisons
valueA @ valueB, where @ is a comparison operator.
The standard comparison operators are:
== (equal to),
!= (not equal to),
< (less than),
> (greater than),
<= (less than or equal to), and
>= (greater than or equal to).
Suppose that x = 5 and var y were just executed. Then,
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Comparisons
valueA @ valueB, where @ is a comparison operator.
The standard comparison operators are:
== (equal to),
!= (not equal to),
< (less than),
> (greater than),
<= (less than or equal to), and
>= (greater than or equal to).
Suppose that x = 5 and var y were just executed. Then,
x == 5 evaluates to true;
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Comparisons
valueA @ valueB, where @ is a comparison operator.
The standard comparison operators are:
== (equal to),
!= (not equal to),
< (less than),
> (greater than),
<= (less than or equal to), and
>= (greater than or equal to).
Suppose that x = 5 and var y were just executed. Then,
x == 5 evaluates to true;
x != 5 evaluates to false;
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Comparisons
valueA @ valueB, where @ is a comparison operator.
The standard comparison operators are:
== (equal to),
!= (not equal to),
< (less than),
> (greater than),
<= (less than or equal to), and
>= (greater than or equal to).
Suppose that x = 5 and var y were just executed. Then,
x == 5 evaluates to true;
x != 5 evaluates to false;
x < 5 evaluates to true;
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Comparisons
valueA @ valueB, where @ is a comparison operator.
The standard comparison operators are:
== (equal to),
!= (not equal to),
< (less than),
> (greater than),
<= (less than or equal to), and
>= (greater than or equal to).
Suppose that x = 5 and var y were just executed. Then,
x == 5 evaluates to true;
x != 5 evaluates to false;
x < 5 evaluates to true;
y == underfined evaluates to true;
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Comparisons
valueA @ valueB, where @ is a comparison operator.
The standard comparison operators are:
== (equal to),
!= (not equal to),
< (less than),
> (greater than),
<= (less than or equal to), and
>= (greater than or equal to).
Suppose that x = 5 and var y were just executed. Then,
x == 5 evaluates to true;
x != 5 evaluates to false;
x < 5 evaluates to true;
y == underfined evaluates to true;
x <= 5 evaluates to true.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Arrays
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Arrays
An array is a special variable that can hold more than one value at
a time.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Arrays
An array is a special variable that can hold more than one value at
a time.
Each value is assigned to an element of an array and one can refer
to an array by its index.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Arrays
An array is a special variable that can hold more than one value at
a time.
Each value is assigned to an element of an array and one can refer
to an array by its index.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Arrays
An array is a special variable that can hold more than one value at
a time.
Each value is assigned to an element of an array and one can refer
to an array by its index.
To create an array, write the name of the array, the symbol =, and
the values that will be stored to the array in square brackets
separated by comma:
coffees = ["French Roast", "Columbian",
"Kona"]
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Arrays
An array is a special variable that can hold more than one value at
a time.
Each value is assigned to an element of an array and one can refer
to an array by its index.
To create an array, write the name of the array, the symbol =, and
the values that will be stored to the array in square brackets
separated by comma:
coffees = ["French Roast", "Columbian",
"Kona"]
To print the second element of this array, use the following
command:
document.writeln(coffees[0])
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Strings
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Strings
A sequences of character like "Hello!".
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Strings
A sequences of character like "Hello!".
A string must be enclosed in quotation marks: either single or
double quotation marks.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Strings
A sequences of character like "Hello!".
A string must be enclosed in quotation marks: either single or
double quotation marks.
Strings consist of simple ASCII characters, escape sequences, or
Unicode characters.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Strings
A sequences of character like "Hello!".
A string must be enclosed in quotation marks: either single or
double quotation marks.
Strings consist of simple ASCII characters, escape sequences, or
Unicode characters.
An escape sequence corresponds to a special character that
cannot be entered conventionally (e.g., the ESC key).
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Strings
A sequences of character like "Hello!".
A string must be enclosed in quotation marks: either single or
double quotation marks.
Strings consist of simple ASCII characters, escape sequences, or
Unicode characters.
An escape sequence corresponds to a special character that
cannot be entered conventionally (e.g., the ESC key).
Escape sequences consist of a backslash followed by a single
letter (e.g., b).
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Assignment Operators
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Assignment Operators
An assignment operator stores the value that is on the right of the
operator to the storage location designated by the variable on
the left of the operator.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Assignment Operators
An assignment operator stores the value that is on the right of the
operator to the storage location designated by the variable on
the left of the operator.
The basic assignment operators are:
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Assignment Operators
An assignment operator stores the value that is on the right of the
operator to the storage location designated by the variable on
the left of the operator.
The basic assignment operators are:
The expression x += y is shorthand for x = x + y.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Assignment Operators
An assignment operator stores the value that is on the right of the
operator to the storage location designated by the variable on
the left of the operator.
The basic assignment operators are:
The expression x += y is shorthand for x = x + y.
Similarly, x -= y is shorthand for x = x - y;
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Assignment Operators
An assignment operator stores the value that is on the right of the
operator to the storage location designated by the variable on
the left of the operator.
The basic assignment operators are:
The expression x += y is shorthand for x = x + y.
Similarly, x -= y is shorthand for x = x - y;
x *= y is shorthand for x = x * y;
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Assignment Operators
An assignment operator stores the value that is on the right of the
operator to the storage location designated by the variable on
the left of the operator.
The basic assignment operators are:
The expression x += y is shorthand for x = x + y.
Similarly, x -= y is shorthand for x = x - y;
x *= y is shorthand for x = x * y;
x /= y is shorthand for x = x / y; and
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Assignment Operators
An assignment operator stores the value that is on the right of the
operator to the storage location designated by the variable on
the left of the operator.
The basic assignment operators are:
The expression x += y is shorthand for x = x + y.
Similarly, x -= y is shorthand for x = x - y;
x *= y is shorthand for x = x * y;
x /= y is shorthand for x = x / y; and
x %= y is shorthand for x = x % y.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Arithmetic Operators
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Arithmetic Operators
x % y
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Arithmetic Operators
x % y Yields the reminder of the integer division of x by y.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Arithmetic Operators
x % y Yields the reminder of the integer division of x by y.
x++
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Arithmetic Operators
x % y Yields the reminder of the integer division of x by y.
x++ Yields the value of x and then increases the value of x by
one.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Arithmetic Operators
x % y Yields the reminder of the integer division of x by y.
x++ Yields the value of x and then increases the value of x by
one.
x--
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Arithmetic Operators
x % y Yields the reminder of the integer division of x by y.
x++ Yields the value of x and then increases the value of x by
one.
x-- Yields the value of x and then decreases the value of x by
one.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Arithmetic Operators
x % y Yields the reminder of the integer division of x by y.
x++ Yields the value of x and then increases the value of x by
one.
x-- Yields the value of x and then decreases the value of x by
one.
++x
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Arithmetic Operators
x % y Yields the reminder of the integer division of x by y.
x++ Yields the value of x and then increases the value of x by
one.
x-- Yields the value of x and then decreases the value of x by
one.
++x Increases the value of x by one and yields this new value.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Arithmetic Operators
x % y Yields the reminder of the integer division of x by y.
x++ Yields the value of x and then increases the value of x by
one.
x-- Yields the value of x and then decreases the value of x by
one.
++x Increases the value of x by one and yields this new value.
--x
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Arithmetic Operators
x % y Yields the reminder of the integer division of x by y.
x++ Yields the value of x and then increases the value of x by
one.
x-- Yields the value of x and then decreases the value of x by
one.
++x Increases the value of x by one and yields this new value.
--x Decreases the value of x by one and yields this new value.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Arithmetic Operators
x % y Yields the reminder of the integer division of x by y.
x++ Yields the value of x and then increases the value of x by
one.
x-- Yields the value of x and then decreases the value of x by
one.
++x Increases the value of x by one and yields this new value.
--x Decreases the value of x by one and yields this new value.
-x
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Arithmetic Operators
x % y Yields the reminder of the integer division of x by y.
x++ Yields the value of x and then increases the value of x by
one.
x-- Yields the value of x and then decreases the value of x by
one.
++x Increases the value of x by one and yields this new value.
--x Decreases the value of x by one and yields this new value.
-x Yields the opposite of x.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Boolean Operators
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Boolean Operators
x && y
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Boolean Operators
x && y = true only if both x and y evaluate to true.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Boolean Operators
x && y = true only if both x and y evaluate to true.
x || y
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Boolean Operators
x && y = true only if both x and y evaluate to true.
x || y = true if either x or y evaluate to true.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Boolean Operators
x && y = true only if both x and y evaluate to true.
x || y = true if either x or y evaluate to true.
! x
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Boolean Operators
x && y = true only if both x and y evaluate to true.
x || y = true if either x or y evaluate to true.
! x = true if x evaluates to false, true otherwise.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
About Commands in General
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
About Commands in General
A command is an instruction given by a user telling a computer to
do something.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
About Commands in General
A command is an instruction given by a user telling a computer to
do something.
Commands are put together by a programmer to achieve a
specific task.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
About Commands in General
A command is an instruction given by a user telling a computer to
do something.
Commands are put together by a programmer to achieve a
specific task.
The basic commands of the language are:
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
About Commands in General
A command is an instruction given by a user telling a computer to
do something.
Commands are put together by a programmer to achieve a
specific task.
The basic commands of the language are:
Conditional commands: if...else and swicth.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
About Commands in General
A command is an instruction given by a user telling a computer to
do something.
Commands are put together by a programmer to achieve a
specific task.
The basic commands of the language are:
Conditional commands: if...else and swicth.
Repetition commands: for, while, do...while, a labeled
command (used in repetition commands without being such a
command), the break command and the continue command.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
About Commands in General
A command is an instruction given by a user telling a computer to
do something.
Commands are put together by a programmer to achieve a
specific task.
The basic commands of the language are:
Conditional commands: if...else and swicth.
Repetition commands: for, while, do...while, a labeled
command (used in repetition commands without being such a
command), the break command and the continue command.
Comments.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The if command
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The if command
if (condition){
commands
}
if (condition){
commands A
}
else{
commands B
}
Form (a) Form (b)
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The if command
if (condition){
commands
}
if (condition){
commands A
}
else{
commands B
}
Form (a) Form (b)
Example
if(3>2){
document.write("okey!")
else{
document.write("problem!")
}
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The switch Command
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The switch Command
switch (expression){
case label1:
command1;
break;
case label2:
command2;
break;
…
default: commandN;
}
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The for Command
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The for Command
for (initialization; condition; inc.-dec.){
commands
}
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The for Command
for (initialization; condition; inc.-dec.){
commands
}
Example
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The for Command
for (initialization; condition; inc.-dec.){
commands
}
Example
var sum = 0;
for(i=1; i<=100; i++){
sum += i;
}
document.write("<p> 1+2+...+100 = ")
document.write(sum); document.write("</p>")
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The do-while Command
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The do-while Command
do {
commands
} while (condition)
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The do-while Command
do {
commands
} while (condition)
Example
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The do-while Command
do {
commands
} while (condition)
Example
i=0;
do{
i++;
document.writeln(i);
}while (i<=5);
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The while Command
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The while Command
while (condition){
commands
}
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The while Command
while (condition){
commands
}
Example
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The while Command
while (condition){
commands
}
Example
i=1;
while (i<=5){
document.writeln(i);
i++;
};
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Labels
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Labels
label: command
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Labels
label: command
Example
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Labels
label: command
Example
var str = "";
loop1: for (var i = 0; i < 5; i++) {
if (i === 1) {
continue loop1;
}
str = str + i;
}
documemt.write(str);
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The break command
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The break command
break or break label
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The break command
break or break label
Example
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The break command
break or break label
Example
for (i=0; i < a.length; i++) {
if (a[i] == theValue) {
break;
}
}
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The continue command
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The continue command
continue or continue label
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The continue command
continue or continue label
Example
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
The continue command
continue or continue label
Example
i = 0
n = 0
while (i < 5) {
i++
if (i == 3) {
continue
}
document.write(n); document.write(" ")
n += i
}
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is a Function?
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is a Function?
A set is a collection of things (e.g., numbers, objects, people, etc.).
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is a Function?
A set is a collection of things (e.g., numbers, objects, people, etc.).
A function is a relation between the elements of two or more sets.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is a Function?
A set is a collection of things (e.g., numbers, objects, people, etc.).
A function is a relation between the elements of two or more sets.
A function from a set 𝐴 to a set 𝐵 maps every element of 𝐴 to one
and only one element of 𝐵.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is a Function?
A set is a collection of things (e.g., numbers, objects, people, etc.).
A function is a relation between the elements of two or more sets.
A function from a set 𝐴 to a set 𝐵 maps every element of 𝐴 to one
and only one element of 𝐵.
To define a function mathematically, we have to write something
like minus(𝑥) = −𝑥.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is a Function?
A set is a collection of things (e.g., numbers, objects, people, etc.).
A function is a relation between the elements of two or more sets.
A function from a set 𝐴 to a set 𝐵 maps every element of 𝐴 to one
and only one element of 𝐵.
To define a function mathematically, we have to write something
like minus(𝑥) = −𝑥.
The letter 𝑥 is called a parameter, while the 5 in minus(5) is called
argument.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
What is a Function?
A set is a collection of things (e.g., numbers, objects, people, etc.).
A function is a relation between the elements of two or more sets.
A function from a set 𝐴 to a set 𝐵 maps every element of 𝐴 to one
and only one element of 𝐵.
To define a function mathematically, we have to write something
like minus(𝑥) = −𝑥.
The letter 𝑥 is called a parameter, while the 5 in minus(5) is called
argument.
In computer jargon we say a function returns a value and we
mean the value that the function maps its argument.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
New Functions
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
New Functions
To define a function we first type the word function.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
New Functions
To define a function we first type the word function.
Then, the name of the function, which should be no different
than a variable name.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
New Functions
To define a function we first type the word function.
Then, the name of the function, which should be no different
than a variable name.
Α sequence of parameters separated by comma surrounded by
parantheses.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
New Functions
To define a function we first type the word function.
Then, the name of the function, which should be no different
than a variable name.
Α sequence of parameters separated by comma surrounded by
parantheses.
Τhe body of the function that is used to map the arguments to a
value or values. Typically, the body contains many commands
and is surrounded by curly brackets.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
New Functions
To define a function we first type the word function.
Then, the name of the function, which should be no different
than a variable name.
Α sequence of parameters separated by comma surrounded by
parantheses.
Τhe body of the function that is used to map the arguments to a
value or values. Typically, the body contains many commands
and is surrounded by curly brackets.
Example:
function square(number){
return number*number
}
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
New Functions cont.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
New Functions cont.
Command return interrupts the execution and forces the
function to map the argument to what follows this word.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
New Functions cont.
Command return interrupts the execution and forces the
function to map the argument to what follows this word.
We can use the function we defined in the previous slide as
follows:
x = square(3)
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
New Functions cont.
Command return interrupts the execution and forces the
function to map the argument to what follows this word.
We can use the function we defined in the previous slide as
follows:
x = square(3)
Obviously, this command assigns the number 9 to variable x
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
New Functions cont.
Command return interrupts the execution and forces the
function to map the argument to what follows this word.
We can use the function we defined in the previous slide as
follows:
x = square(3)
Obviously, this command assigns the number 9 to variable x
Functions in JavaScript can be recursive, that is, they can be
defined in terms of themselves.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
New Functions cont.
Command return interrupts the execution and forces the
function to map the argument to what follows this word.
We can use the function we defined in the previous slide as
follows:
x = square(3)
Obviously, this command assigns the number 9 to variable x
Functions in JavaScript can be recursive, that is, they can be
defined in terms of themselves.
However, I will not discuss them here.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Event Handling
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Event Handling
An event is an action or occurrence that happens in the system
one is programming.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Event Handling
An event is an action or occurrence that happens in the system
one is programming.
A system informs programs about events and so one can
program then to respond to them in some way if desired.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Event Handling
An event is an action or occurrence that happens in the system
one is programming.
A system informs programs about events and so one can
program then to respond to them in some way if desired.
If a user clicks a button on a web page, a program might respond
to that action by displaying an information box.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Event Handling
An event is an action or occurrence that happens in the system
one is programming.
A system informs programs about events and so one can
program then to respond to them in some way if desired.
If a user clicks a button on a web page, a program might respond
to that action by displaying an information box.
In order to define an event handler we need something that will
trigger an event.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Event Handling
An event is an action or occurrence that happens in the system
one is programming.
A system informs programs about events and so one can
program then to respond to them in some way if desired.
If a user clicks a button on a web page, a program might respond
to that action by displaying an information box.
In order to define an event handler we need something that will
trigger an event.
When a user moves the mouse over an area, an event happens.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Event Handling
An event is an action or occurrence that happens in the system
one is programming.
A system informs programs about events and so one can
program then to respond to them in some way if desired.
If a user clicks a button on a web page, a program might respond
to that action by displaying an information box.
In order to define an event handler we need something that will
trigger an event.
When a user moves the mouse over an area, an event happens.
To define an event handler: the name inside a tag followed by an
equal sign, followed by JavaScript code that will be invoked when
the event associated with the handler happens.
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Event Handling Example
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Event Handling Example
<input type="button" value="Calculate"
onClick="compute(this.form)">
Introduction to
JavaScript
Syropoulos
Programming
Languages
Basics of
JavaScript
Expressions and
Operators
Basic Commands
Defining New
Functions
Finale
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Event Handling Example
<input type="button" value="Calculate"
onClick="compute(this.form)">
When button is clicked, then function compute is called.
Introduction to JavaScript: Programming Basics, Expressions, Functions (40/40
Introduction to JavaScript: Programming Basics, Expressions, Functions (40/40
Introduction to JavaScript: Programming Basics, Expressions, Functions (40/40
Introduction to JavaScript: Programming Basics, Expressions, Functions (40/40
Introduction to JavaScript: Programming Basics, Expressions, Functions (40/40
Introduction to JavaScript: Programming Basics, Expressions, Functions (40/40
Introduction to JavaScript: Programming Basics, Expressions, Functions (40/40
Introduction to JavaScript: Programming Basics, Expressions, Functions (40/40
Introduction to JavaScript: Programming Basics, Expressions, Functions (40/40
Introduction to JavaScript: Programming Basics, Expressions, Functions (40/40
Introduction to JavaScript: Programming Basics, Expressions, Functions (40/40
Introduction to JavaScript: Programming Basics, Expressions, Functions (40/40
Introduction to JavaScript: Programming Basics, Expressions, Functions (40/40
Introduction to JavaScript: Programming Basics, Expressions, Functions (40/40
Introduction to JavaScript: Programming Basics, Expressions, Functions (40/40
Introduction to JavaScript: Programming Basics, Expressions, Functions (40/40
Introduction to JavaScript: Programming Basics, Expressions, Functions (40/40
Introduction to JavaScript: Programming Basics, Expressions, Functions (40/40

Weitere ähnliche Inhalte

Ähnlich wie Introduction to JavaScript: Programming Basics, Expressions, Functions (40/40

Programming Paradigms
Programming ParadigmsProgramming Paradigms
Programming ParadigmsJaneve George
 
Introduction to Clojure
Introduction to ClojureIntroduction to Clojure
Introduction to ClojureRenzo Borgatti
 
Programming Paradigms
Programming ParadigmsProgramming Paradigms
Programming ParadigmsDirecti Group
 
DAT 210 Education Specialist |tutorialrank.com
DAT 210 Education Specialist |tutorialrank.comDAT 210 Education Specialist |tutorialrank.com
DAT 210 Education Specialist |tutorialrank.comladworkspaces
 
robert-kovacsics-part-ii-dissertation
robert-kovacsics-part-ii-dissertationrobert-kovacsics-part-ii-dissertation
robert-kovacsics-part-ii-dissertationRobert Kovacsics
 
Procedural Programming Of Programming Languages
Procedural Programming Of Programming LanguagesProcedural Programming Of Programming Languages
Procedural Programming Of Programming LanguagesTammy Moncrief
 
Object oriented slides
Object oriented slidesObject oriented slides
Object oriented slidesahad nadeem
 
Scripting OS X with Applescript, without Applescript
Scripting OS X with Applescript, without ApplescriptScripting OS X with Applescript, without Applescript
Scripting OS X with Applescript, without ApplescriptMatt Patterson
 
PHP Reactive Programming at Medan Tech Day 2018
PHP Reactive Programming at Medan Tech Day 2018PHP Reactive Programming at Medan Tech Day 2018
PHP Reactive Programming at Medan Tech Day 2018Dolly Aswin Harahap
 
Unit 4 Assignment 1 Comparative Study Of Programming...
Unit 4 Assignment 1 Comparative Study Of Programming...Unit 4 Assignment 1 Comparative Study Of Programming...
Unit 4 Assignment 1 Comparative Study Of Programming...Carmen Sanborn
 
2016_Work_Samp_MFriehauf-Penton-md
2016_Work_Samp_MFriehauf-Penton-md2016_Work_Samp_MFriehauf-Penton-md
2016_Work_Samp_MFriehauf-Penton-mdMike Friehauf
 
ITB2019 Real World Scenarios for Modern CFML - Nolan Erck
ITB2019 Real World Scenarios for Modern CFML - Nolan ErckITB2019 Real World Scenarios for Modern CFML - Nolan Erck
ITB2019 Real World Scenarios for Modern CFML - Nolan ErckOrtus Solutions, Corp
 
LISP: How I Learned To Stop Worrying And Love Parantheses
LISP: How I Learned To Stop Worrying And Love ParanthesesLISP: How I Learned To Stop Worrying And Love Parantheses
LISP: How I Learned To Stop Worrying And Love ParanthesesDominic Graefen
 

Ähnlich wie Introduction to JavaScript: Programming Basics, Expressions, Functions (40/40 (20)

Programming Paradigms
Programming ParadigmsProgramming Paradigms
Programming Paradigms
 
Introduction to Clojure
Introduction to ClojureIntroduction to Clojure
Introduction to Clojure
 
OOP Java
OOP JavaOOP Java
OOP Java
 
Tutor Py
Tutor PyTutor Py
Tutor Py
 
Programming Paradigms
Programming ParadigmsProgramming Paradigms
Programming Paradigms
 
DAT 210 Education Specialist |tutorialrank.com
DAT 210 Education Specialist |tutorialrank.comDAT 210 Education Specialist |tutorialrank.com
DAT 210 Education Specialist |tutorialrank.com
 
robert-kovacsics-part-ii-dissertation
robert-kovacsics-part-ii-dissertationrobert-kovacsics-part-ii-dissertation
robert-kovacsics-part-ii-dissertation
 
TypeScript
TypeScriptTypeScript
TypeScript
 
Procedural Programming Of Programming Languages
Procedural Programming Of Programming LanguagesProcedural Programming Of Programming Languages
Procedural Programming Of Programming Languages
 
Object oriented slides
Object oriented slidesObject oriented slides
Object oriented slides
 
Lecture 11
Lecture 11Lecture 11
Lecture 11
 
Scripting OS X with Applescript, without Applescript
Scripting OS X with Applescript, without ApplescriptScripting OS X with Applescript, without Applescript
Scripting OS X with Applescript, without Applescript
 
Basic Java Handout
Basic Java HandoutBasic Java Handout
Basic Java Handout
 
PHP Reactive Programming at Medan Tech Day 2018
PHP Reactive Programming at Medan Tech Day 2018PHP Reactive Programming at Medan Tech Day 2018
PHP Reactive Programming at Medan Tech Day 2018
 
PARADIGM IT.pptx
PARADIGM IT.pptxPARADIGM IT.pptx
PARADIGM IT.pptx
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
 
Unit 4 Assignment 1 Comparative Study Of Programming...
Unit 4 Assignment 1 Comparative Study Of Programming...Unit 4 Assignment 1 Comparative Study Of Programming...
Unit 4 Assignment 1 Comparative Study Of Programming...
 
2016_Work_Samp_MFriehauf-Penton-md
2016_Work_Samp_MFriehauf-Penton-md2016_Work_Samp_MFriehauf-Penton-md
2016_Work_Samp_MFriehauf-Penton-md
 
ITB2019 Real World Scenarios for Modern CFML - Nolan Erck
ITB2019 Real World Scenarios for Modern CFML - Nolan ErckITB2019 Real World Scenarios for Modern CFML - Nolan Erck
ITB2019 Real World Scenarios for Modern CFML - Nolan Erck
 
LISP: How I Learned To Stop Worrying And Love Parantheses
LISP: How I Learned To Stop Worrying And Love ParanthesesLISP: How I Learned To Stop Worrying And Love Parantheses
LISP: How I Learned To Stop Worrying And Love Parantheses
 

Mehr von Apostolos Syropoulos

A Presentation of Braga. It was made by students of school
A Presentation of Braga. It was made by students of schoolA Presentation of Braga. It was made by students of school
A Presentation of Braga. It was made by students of schoolApostolos Syropoulos
 
A short presentation of Italy made by students of a school in Cosimo, Sicily,...
A short presentation of Italy made by students of a school in Cosimo, Sicily,...A short presentation of Italy made by students of a school in Cosimo, Sicily,...
A short presentation of Italy made by students of a school in Cosimo, Sicily,...Apostolos Syropoulos
 
Social Media Algorithms - Part of the "Computers in out Life" Erasmus+ Project
Social Media Algorithms - Part of the "Computers in out Life" Erasmus+ ProjectSocial Media Algorithms - Part of the "Computers in out Life" Erasmus+ Project
Social Media Algorithms - Part of the "Computers in out Life" Erasmus+ ProjectApostolos Syropoulos
 
A gentle introduction to Artificial Intelligence
A gentle introduction to Artificial IntelligenceA gentle introduction to Artificial Intelligence
A gentle introduction to Artificial IntelligenceApostolos Syropoulos
 
ΑΡΧΟΝΤΙΚΟ ΠΑΜΟΥΚΤΣΟΓΛΟΥ - Pamouktsoglu Mansion
ΑΡΧΟΝΤΙΚΟ ΠΑΜΟΥΚΤΣΟΓΛΟΥ - Pamouktsoglu MansionΑΡΧΟΝΤΙΚΟ ΠΑΜΟΥΚΤΣΟΓΛΟΥ - Pamouktsoglu Mansion
ΑΡΧΟΝΤΙΚΟ ΠΑΜΟΥΚΤΣΟΓΛΟΥ - Pamouktsoglu MansionApostolos Syropoulos
 
Το Ορφανοτροφείο Θηλέων Ξάνθης
Το Ορφανοτροφείο Θηλέων ΞάνθηςΤο Ορφανοτροφείο Θηλέων Ξάνθης
Το Ορφανοτροφείο Θηλέων ΞάνθηςApostolos Syropoulos
 
Το Αρχαιολογικό Μουσείο Αβδήρων
Το Αρχαιολογικό Μουσείο ΑβδήρωνΤο Αρχαιολογικό Μουσείο Αβδήρων
Το Αρχαιολογικό Μουσείο ΑβδήρωνApostolos Syropoulos
 
Ταφικά έθιμα στα αρχαία Άβδηρα
Ταφικά έθιμα στα αρχαία ΆβδηραΤαφικά έθιμα στα αρχαία Άβδηρα
Ταφικά έθιμα στα αρχαία ΆβδηραApostolos Syropoulos
 
Το ορφανοτροφείο της Ξάνθης
Το ορφανοτροφείο της ΞάνθηςΤο ορφανοτροφείο της Ξάνθης
Το ορφανοτροφείο της ΞάνθηςApostolos Syropoulos
 
Μικρασιατική κατατστροφή - Μέρος 3
Μικρασιατική κατατστροφή - Μέρος 3Μικρασιατική κατατστροφή - Μέρος 3
Μικρασιατική κατατστροφή - Μέρος 3Apostolos Syropoulos
 
Μικρασιατική κατατστροφή - Μέρος 2
Μικρασιατική κατατστροφή - Μέρος 2Μικρασιατική κατατστροφή - Μέρος 2
Μικρασιατική κατατστροφή - Μέρος 2Apostolos Syropoulos
 
Αφιέρωμα στη Μικρά Ασία
Αφιέρωμα στη Μικρά ΑσίαΑφιέρωμα στη Μικρά Ασία
Αφιέρωμα στη Μικρά ΑσίαApostolos Syropoulos
 
ΕΚΠΑΙΔΕΥΤΙΚΗ ΔΡΑΣΗ «ΙΧΝΙΛΑΤΩΝΤΑΣ ΤΟ ΠΑΡΕΛΘΟΝ ΤΟΥ ΤΟΠΟΥ ΜΑΣ».pptx
ΕΚΠΑΙΔΕΥΤΙΚΗ ΔΡΑΣΗ «ΙΧΝΙΛΑΤΩΝΤΑΣ ΤΟ ΠΑΡΕΛΘΟΝ ΤΟΥ ΤΟΠΟΥ ΜΑΣ».pptxΕΚΠΑΙΔΕΥΤΙΚΗ ΔΡΑΣΗ «ΙΧΝΙΛΑΤΩΝΤΑΣ ΤΟ ΠΑΡΕΛΘΟΝ ΤΟΥ ΤΟΠΟΥ ΜΑΣ».pptx
ΕΚΠΑΙΔΕΥΤΙΚΗ ΔΡΑΣΗ «ΙΧΝΙΛΑΤΩΝΤΑΣ ΤΟ ΠΑΡΕΛΘΟΝ ΤΟΥ ΤΟΠΟΥ ΜΑΣ».pptxApostolos Syropoulos
 
Συγγραφή μαθηματικού κειμένου με χρήση του XeLaTeX (Writing mathematical tex...
Συγγραφή μαθηματικού κειμένου με χρήση του XeLaTeX (Writing  mathematical tex...Συγγραφή μαθηματικού κειμένου με χρήση του XeLaTeX (Writing  mathematical tex...
Συγγραφή μαθηματικού κειμένου με χρήση του XeLaTeX (Writing mathematical tex...Apostolos Syropoulos
 
Inflected Forms of Nouns and Adjectives
Inflected Forms of Nouns and AdjectivesInflected Forms of Nouns and Adjectives
Inflected Forms of Nouns and AdjectivesApostolos Syropoulos
 
Computational Thinking and...the Greek Alphabet
Computational Thinking and...the Greek AlphabetComputational Thinking and...the Greek Alphabet
Computational Thinking and...the Greek AlphabetApostolos Syropoulos
 
Το Αποτύπωμα του 1821 στον Τόπο μου
Το Αποτύπωμα του 1821 στον Τόπο μουΤο Αποτύπωμα του 1821 στον Τόπο μου
Το Αποτύπωμα του 1821 στον Τόπο μουApostolos Syropoulos
 
Παγκόσμια ημέρα της σταθεράς π=3,14...
Παγκόσμια ημέρα της σταθεράς π=3,14...Παγκόσμια ημέρα της σταθεράς π=3,14...
Παγκόσμια ημέρα της σταθεράς π=3,14...Apostolos Syropoulos
 

Mehr von Apostolos Syropoulos (20)

A Presentation of Braga. It was made by students of school
A Presentation of Braga. It was made by students of schoolA Presentation of Braga. It was made by students of school
A Presentation of Braga. It was made by students of school
 
A short presentation of Italy made by students of a school in Cosimo, Sicily,...
A short presentation of Italy made by students of a school in Cosimo, Sicily,...A short presentation of Italy made by students of a school in Cosimo, Sicily,...
A short presentation of Italy made by students of a school in Cosimo, Sicily,...
 
Social Media Algorithms - Part of the "Computers in out Life" Erasmus+ Project
Social Media Algorithms - Part of the "Computers in out Life" Erasmus+ ProjectSocial Media Algorithms - Part of the "Computers in out Life" Erasmus+ Project
Social Media Algorithms - Part of the "Computers in out Life" Erasmus+ Project
 
A gentle introduction to Artificial Intelligence
A gentle introduction to Artificial IntelligenceA gentle introduction to Artificial Intelligence
A gentle introduction to Artificial Intelligence
 
ΑΡΧΟΝΤΙΚΟ ΠΑΜΟΥΚΤΣΟΓΛΟΥ - Pamouktsoglu Mansion
ΑΡΧΟΝΤΙΚΟ ΠΑΜΟΥΚΤΣΟΓΛΟΥ - Pamouktsoglu MansionΑΡΧΟΝΤΙΚΟ ΠΑΜΟΥΚΤΣΟΓΛΟΥ - Pamouktsoglu Mansion
ΑΡΧΟΝΤΙΚΟ ΠΑΜΟΥΚΤΣΟΓΛΟΥ - Pamouktsoglu Mansion
 
Το Ορφανοτροφείο Θηλέων Ξάνθης
Το Ορφανοτροφείο Θηλέων ΞάνθηςΤο Ορφανοτροφείο Θηλέων Ξάνθης
Το Ορφανοτροφείο Θηλέων Ξάνθης
 
Το Αρχαιολογικό Μουσείο Αβδήρων
Το Αρχαιολογικό Μουσείο ΑβδήρωνΤο Αρχαιολογικό Μουσείο Αβδήρων
Το Αρχαιολογικό Μουσείο Αβδήρων
 
Ταφικά έθιμα στα αρχαία Άβδηρα
Ταφικά έθιμα στα αρχαία ΆβδηραΤαφικά έθιμα στα αρχαία Άβδηρα
Ταφικά έθιμα στα αρχαία Άβδηρα
 
Το ορφανοτροφείο της Ξάνθης
Το ορφανοτροφείο της ΞάνθηςΤο ορφανοτροφείο της Ξάνθης
Το ορφανοτροφείο της Ξάνθης
 
Μικρασιατική κατατστροφή - Μέρος 3
Μικρασιατική κατατστροφή - Μέρος 3Μικρασιατική κατατστροφή - Μέρος 3
Μικρασιατική κατατστροφή - Μέρος 3
 
Μικρασιατική κατατστροφή - Μέρος 2
Μικρασιατική κατατστροφή - Μέρος 2Μικρασιατική κατατστροφή - Μέρος 2
Μικρασιατική κατατστροφή - Μέρος 2
 
Αφιέρωμα στη Μικρά Ασία
Αφιέρωμα στη Μικρά ΑσίαΑφιέρωμα στη Μικρά Ασία
Αφιέρωμα στη Μικρά Ασία
 
ΕΚΠΑΙΔΕΥΤΙΚΗ ΔΡΑΣΗ «ΙΧΝΙΛΑΤΩΝΤΑΣ ΤΟ ΠΑΡΕΛΘΟΝ ΤΟΥ ΤΟΠΟΥ ΜΑΣ».pptx
ΕΚΠΑΙΔΕΥΤΙΚΗ ΔΡΑΣΗ «ΙΧΝΙΛΑΤΩΝΤΑΣ ΤΟ ΠΑΡΕΛΘΟΝ ΤΟΥ ΤΟΠΟΥ ΜΑΣ».pptxΕΚΠΑΙΔΕΥΤΙΚΗ ΔΡΑΣΗ «ΙΧΝΙΛΑΤΩΝΤΑΣ ΤΟ ΠΑΡΕΛΘΟΝ ΤΟΥ ΤΟΠΟΥ ΜΑΣ».pptx
ΕΚΠΑΙΔΕΥΤΙΚΗ ΔΡΑΣΗ «ΙΧΝΙΛΑΤΩΝΤΑΣ ΤΟ ΠΑΡΕΛΘΟΝ ΤΟΥ ΤΟΠΟΥ ΜΑΣ».pptx
 
How to Convert Units of Measure
How to Convert Units of MeasureHow to Convert Units of Measure
How to Convert Units of Measure
 
Συγγραφή μαθηματικού κειμένου με χρήση του XeLaTeX (Writing mathematical tex...
Συγγραφή μαθηματικού κειμένου με χρήση του XeLaTeX (Writing  mathematical tex...Συγγραφή μαθηματικού κειμένου με χρήση του XeLaTeX (Writing  mathematical tex...
Συγγραφή μαθηματικού κειμένου με χρήση του XeLaTeX (Writing mathematical tex...
 
Inflected Forms of Nouns and Adjectives
Inflected Forms of Nouns and AdjectivesInflected Forms of Nouns and Adjectives
Inflected Forms of Nouns and Adjectives
 
Learning Simple Phrases in Greek
Learning Simple Phrases in GreekLearning Simple Phrases in Greek
Learning Simple Phrases in Greek
 
Computational Thinking and...the Greek Alphabet
Computational Thinking and...the Greek AlphabetComputational Thinking and...the Greek Alphabet
Computational Thinking and...the Greek Alphabet
 
Το Αποτύπωμα του 1821 στον Τόπο μου
Το Αποτύπωμα του 1821 στον Τόπο μουΤο Αποτύπωμα του 1821 στον Τόπο μου
Το Αποτύπωμα του 1821 στον Τόπο μου
 
Παγκόσμια ημέρα της σταθεράς π=3,14...
Παγκόσμια ημέρα της σταθεράς π=3,14...Παγκόσμια ημέρα της σταθεράς π=3,14...
Παγκόσμια ημέρα της σταθεράς π=3,14...
 

Kürzlich hochgeladen

Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 

Kürzlich hochgeladen (20)

Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 

Introduction to JavaScript: Programming Basics, Expressions, Functions (40/40