angular · Angular Basics
What will be the result of the below program?
function f(input: boolean) {
let a = 100;
if (input) {
let b = a + 1;
}
return b;
}Answers
- Undefined
- 101
- Compilation error for a
- Compilation error for b
angular · Angular Basics
function f(input: boolean) {
let a = 100;
if (input) {
let b = a + 1;
}
return b;
}