Theorie Javascript Flashcards

1
Q

Javascript is a …

A
  • weakly typed
  • object-based
  • dynamic
  • mulit-paradigm

…scripting language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Every browser on every OS runs

A

… JS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Wikipedia lists 40 environments for “Uses outside Web pages”

And that is because…

A

  • JS is small and lightweight
  • JS runs inside hose environments
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Wikipedia lists 40 environments for “Uses outside Web pages”.
Typical uses are:

A
  • embedded Scripting Language (JS inside Applications)
  • Scripting Engine (JS on OS level)
  • Application platform (JS as the main programming language)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Client-side JS?

A

control of a browser and the DOM

eg. Webrosers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Server-side JS?

A

control of objects relevant for servers

eg. Node.js

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Mobile Platforms

A

control of native APIs

eg. Apache Cordova/Phonegap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is ECMAScript

A

is a Standard for scripting languages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Javascript is based..

A

on the ECMAScript standard

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

ECMA International

A

European association for standardizing information and communication systems

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

the ECMAScript spec is not for …

A

app developers, but for language implementors!

specification != Documentation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

companies can use the open standard language to develop their…

A

own implementation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

ECMAScript is also approved by…

A

the ISO

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Assignment

A

=

e.g. a = 41

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

math

A

*
/

e.g.: a+1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

compound Assignment

A

*=
/=

e.g.: a+=1

17
Q

increment/decrement

18
Q

equality

A

==

!= unequal
!== unequal

e.g.: a==42

19
Q

comparison

A

<
>
<=
>=

e.g.: a<=42

20
Q

logical

A
&amp;&amp; and
// or
21
Q

primitive types of Javascript

A
  • numbers
  • strings
  • booleans (true and false)
  • null
  • undefined
  • symbol

All other values are objects.

22
Q

Objects in Javascript are…

A

… mutable keyed collections

23
Q

an object is a …

A

.. container of properties

24
Q

a property has a …

A

name and a value

25
a property name can ...
be any string, including the empty string
26
a property vlaue can be...
any Javascript value (except for undefined)
27
objects have no
constraint on the name of new properties or on the values of properties
28
objects can contain
other objects, to represent tree or graph structures
29
object literals
- provide a very convenient notation for creating new object values - is a pair of curly braces surrounding zero or more name/value pairs ``` e.g.: var empty_object = {}; ``` var stooge = { "first-name": "Jerome", "last-name": "Howard" };
30
in JavaScript commas are used to
seperate the pairs