ngSwitch Structural Directive
Exercise
Correct!
var x =
var x = 10;
assert(x == 10);
// This is context code available everywhere // The user will be able to call magicFunc in his code function magicFunc() { return 3; }
sd
Exercise
Correct!
var line1 = "<li *ngFor='let str of stringArray; let num= index'>"
var line2 = " {{num+1}}"
var line3 = "</li>"
var line1 = "<li *ngFor='let str of stringArray; let num= index'>" var line2 = " {{num+1}}2" var line3 = "</li>"
var sol2 = " {{num+1}}2" assert(stringArray == "kk" );
var stringArray = "stringArray";
Here is the introduction for the quiz
This is Question 1:
- [x] This is the proposition 1 (the correct one)
- [ ] This is the proposition 2
This is a help message when the answer to question 1 is wrong
This is Question 2:
- [ ] This is the proposition 1
- [x] This is the proposition 2 (correct)
- [x] This is the proposition 3 (correct)
This is a help message when the answer to question 2 is wrong
<li *ngFor="let str of stringArray; let num= index">
{{num+1}} {{str}}
</li>