Part 1: JavaScript Basics-2
Teil 2
Teil 2
Kartei Details
Karten | 46 |
---|---|
Sprache | Deutsch |
Kategorie | BWL |
Stufe | Grundschule |
Erstellt / Aktualisiert | 18.07.2016 / 15.12.2022 |
Lizenzierung | Keine Angabe |
Weblink |
https://card2brain.ch/box/part_1_javascript_basics2
|
Einbinden |
<iframe src="https://card2brain.ch/box/part_1_javascript_basics2/embed" width="780" height="150" scrolling="no" frameborder="0"></iframe>
|
nennen sie die Bitwise Operators ?
1. & (Bitwise AND)
2. | (Bitwise OR)
3. ^ (Bitwise XOR)
4. ~ (Bitwise Not)
5. << (Left Shift)
6. >> (Right Shift)
7. >>> (Right shift with Zero)
nennen sie die Assignment Operators?
1. = (Simple Assignment)
2. += (Add and Assignment)
3. -= (Subtract and Assignment)
4. *= (Multiply and Assignment)
5. /= (Divide and Assignment)
6. %= (Modules and Assignment)
nennen Sie die Miscellaneous Operators?
1. ?: (Conditional)
nennen sie die typeof Operators?
1. Number "number"
2. String "string"
3. Boolean "boolean"
4. Object "object"
5. Function "function "
6. Undefined "undefined"
7. Null "object"
wie lautet das gerüst eines if-Statements?
if (expression){
Statement(s) to be executed if expression is true
}
nennen sie ein beispiel eines if-statements?
<html>
<body>
<script type="text/javascript">
<!--
var age = 20;
if( age > 18 ) {
document.write("<b>Qualifies for driving</b>");
}
//-->
</script>
<p>Set the variable to different value and then try...</p>
</body>
</html>
wie lautet das gerüst eines if...else Statements?
if (expression){
Statement(s) to be executed if expression is true
}else{
Statement(s) to be executed if expression is false
}
nennen sie ein beispiel eines if...else Statements?
<html>
<body>
<script type="text/javascript">
<!--
var age = 15;
if( age > 18 ){
document.write("<b>Qualifies for driving</b>");
}else{
document.write("<b>Does not qualify for driving</b>");
}
//-->
</script>
<p>Set the variable to different value and then try...</p>
</body>
</html>