25 lines
326 B
TypeScript
25 lines
326 B
TypeScript
//// [ifElseWithStatements1.ts]
|
|
if (true)
|
|
f();
|
|
else
|
|
f();
|
|
|
|
function foo(): boolean {
|
|
if (true)
|
|
return true;
|
|
else
|
|
return false;
|
|
}
|
|
|
|
|
|
//// [ifElseWithStatements1.js]
|
|
if (true)
|
|
f();
|
|
else
|
|
f();
|
|
function foo() {
|
|
if (true)
|
|
return true;
|
|
else
|
|
return false;
|
|
}
|