Basics of Typescript

Welcome to your Basics of Typescript quiz.

Name
Email
Which statement is NOT true about TypeScript and JavaScript?

How can you define a function that takes two numbers as arguments and returns their sum?

What is the syntax for defining a class in TypeScript?

Which of the following is a valid way to declare a variable with a string type in TypeScript?

What is the keyword to extend an existing class in Typescript?

How can you create an array of numbers in TypeScript?

What is the difference between let and const keywords in TypeScript?

What is the purpose of an interface in TypeScript?

What does the any type in TypeScript signify?

What is the primary benefit of using TypeScript over JavaScript?

This Post Has 6 Comments

  1. Maaz Husyan

    I don’t know that what should I write !!!!

  2. Maaz Husyan

    I don’t know that what should I write !!!! Allah Allah Allah

  3. samina anjum

    thanks

  4. Moiz Qureshi

    ……

  5. Nida Khan

    very useful

  6. Hanzala

    Scored 10 out of 8 not that bad for a beginner

Leave a Reply