The basics Flashcards

1
Q

What kind of language is Java scrip?

A

Scripting language

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

What is the official name of JavaScript as of 1997?

A

ECMAScript

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

Who does the brand JavaScript belong to?

A

Oracle

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

What SAP tool is based on JavaScript?

A

SAPUI5

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

How are developer tools called from chrome and edge and firefox?

A

F12

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

How are developer tools called from Safari and Opera?

A

CTRL + ALT + i

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

What was Javascript first called?

A

DHTML

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

How are intermediate results or errors written in Javascript

A

console.log()
Example console.log(“I was called”)

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

How is javascript executed?

A

It must be embedded in a HTML page

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

Where are the three places where javascript can be positioned

A

As a separate file and reference in the header
Within the header area
within the body

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

How are comments done

A

Single line are started with
//
Multiple line comments are enclosed between
/….
….
/

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

How are functions defined?

A

The keyword FUNCTION followed by the functionname and the actual function encosed in curly brackets


function button( ){
//call function
console.log("Button pressed");
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the 9 reserve words that can not be used as a function name?

A

switch
case
break
if
else
for
fnction
try
catch

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

How are arguments supplied to a function

A

Arguments are provided in parentheses. Return values are indicated by the keyword “return”.

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

How is the “return” of a function received by the caller?

A

Just like in abap
var myvar = funcname(5,AB);

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

Write a quick function multiplying 2 values and returning the result

A

//multiply
function mymultiplier(a,b){
var y = a * b;
return y;
};

called by
</script>
</head>

<body>
<button>
call function
</button>
</html>
</body>

17
Q

What object represents the browser window?

A

window

18
Q

It is required that the constructor of an object be capitalized because..

A

It is not required but it is univaersally done anyway

19
Q

What is the syntax for creating a new object?

A

var oObject = new Object();
or var oObject { Characteristic1 : “Value1”.
Characteristic2 : “Value2”
Method: function() { …}.
};

20
Q

At it’s core, describe JavaScript

A

Single threaded and synchronous. Meaning that code is executed in the order in which it is written. Only one function at a time can execute

21
Q

Why would we place are script in the body rather than the head?

A

It is faster

22
Q

Where can I install node.js from?

A

https://nodejs.org/en/download/