Please select correct basic types that are available in TypeScript:
Responda
number, null, binary, string, boolean
string, boolean, enum, null, never
boolean, char, string, number
boolean, number, int, enum, void
Questão 2
Questão
Please select correct TypeScript variable declarations. Choose all that apply.
Responda
x = "My String";
let z = "My String";
let a: string = "My String";
let myAge: int = 25;
let c as string = "My String";
let b = ("My String" as string);
Questão 3
Questão
let variable declaration is accessible anywhere within their containing function, module, namespace, or global scope.
Responda
True
False
Questão 4
Questão
Please use drag and drop to make sure that variable sentence contains the following string: "Hello, my name is Joe Bloggs. I'm 44 years old."
let myName = "Joe Bloggs";
let myAge: number = 44;
let sentence: string = `Hello, my name is [blank_start]${myName}[blank_end]. I'm [blank_start]${myAge}[blank_end] years old.`;
Responda
{myName}
{$myName}
${myName}
$myName
$myAge.toString()
${myAge}
{$myAge.toString()}
{$myAge}
Questão 5
Questão
The following code will output in the console:
enum make { Audi = 100, BMW = 200, Citroen=300, Ford, Holden, Hyundai, Jaguar, Kia, Lada }
let myCarMake: make = make.Ford;
console.info(myCarMake.toString());
Responda
Ford
400
301
syntax error
Quer criar seus próprios Quizzesgratuitos com a GoConqr? Saiba mais.