The basics Flashcards
What kind of language is Java scrip?
Scripting language
What is the official name of JavaScript as of 1997?
ECMAScript
Who does the brand JavaScript belong to?
Oracle
What SAP tool is based on JavaScript?
SAPUI5
How are developer tools called from chrome and edge and firefox?
F12
How are developer tools called from Safari and Opera?
CTRL + ALT + i
What was Javascript first called?
DHTML
How are intermediate results or errors written in Javascript
console.log()
Example console.log(“I was called”)
How is javascript executed?
It must be embedded in a HTML page
Where are the three places where javascript can be positioned
As a separate file and reference in the header
Within the header area
within the body
How are comments done
Single line are started with
//
Multiple line comments are enclosed between
/….
…./
How are functions defined?
The keyword FUNCTION followed by the functionname and the actual function encosed in curly brackets
function button( ){
//call function
console.log("Button pressed");
}
What are the 9 reserve words that can not be used as a function name?
switch
case
break
if
else
for
fnction
try
catch
How are arguments supplied to a function
Arguments are provided in parentheses. Return values are indicated by the keyword “return”.
How is the “return” of a function received by the caller?
Just like in abap
var myvar = funcname(5,AB);