Which of the following is a valid TypeScript data type? Options: number, bigint, symbol, all of the above

JS Ninjas Test

Flashcard
•
Information Technology (IT)
•
Professional Development
•
Hard
Quizizz Content
FREE Resource
Student preview

35 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
all of the above
Answer explanation
2.
FLASHCARD QUESTION
Front
What does the 'readonly' keyword do in TypeScript?
Back
Makes a variable immutable and prevents reassignment.
Answer explanation
3.
FLASHCARD QUESTION
Front
Which utility type makes all properties of a TypeScript interface optional? Options: Partial<T>, Required<T>, Readonly<T>, Pick<T, K>
Back
Partial<T>
Answer explanation
4.
FLASHCARD QUESTION
Front
What is the difference between 'interface' and 'type' in TypeScript?
Back
Interfaces can be extended, types cannot; Types allow unions, interfaces do not.
Answer explanation
5.
FLASHCARD QUESTION
Front
Which of the following is a new JavaScript feature introduced in ES2022? Top-level await, Private class fields, Optional chaining, WeakRef
Back
Top-level await
Answer explanation
6.
FLASHCARD QUESTION
Front
What does 'as const' do in TypeScript?
Back
Makes the variable a readonly tuple, freezes the object, and makes it a literal type.
Answer explanation
7.
FLASHCARD QUESTION
Front
What is a difference between '==' and '===' in JavaScript?
Back
'===' checks type and value, '==' does type coercion.
Answer explanation
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Java temas 1-4

Flashcard
•
University
25 questions
General Knowledge Flashcard

Flashcard
•
Professional Development
34 questions
React Native Pre-Assessment

Flashcard
•
Professional Development
35 questions
JavaScript основы

Flashcard
•
KG - University
25 questions
Debugging Round 1

Flashcard
•
University
25 questions
ORDINARIO PROGRAMACION

Flashcard
•
University
31 questions
Java

Flashcard
•
University
25 questions
Java temas 1-4

Flashcard
•
University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade