
JS Ninjas Test
Flashcard
•
Information Technology (IT)
•
Professional Development
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

35 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following is a valid TypeScript data type? Options: number, bigint, symbol, all of the above
Back
all of the above
Answer explanation
TypeScript supports number, bigint, and symbol as valid data types.
2.
FLASHCARD QUESTION
Front
What does the 'readonly' keyword do in TypeScript?
Back
Makes a variable immutable and prevents reassignment.
Answer explanation
readonly' ensures the value cannot be modified after initialization.
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
Partial<T> makes all properties optional.
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
Interfaces can be extended and types support unions.
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
Top-level await was introduced in ES2022.
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
as const' ensures values are inferred as literals and readonly.
7.
FLASHCARD QUESTION
Front
What is a difference between '==' and '===' in JavaScript?
Back
'===' checks type and value, '==' does type coercion.
Answer explanation
==' performs type coercion while '===' does not.
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
24 questions
חידון טכנו פדגוג בתחילת שיעור 2
Flashcard
•
Professional Development
25 questions
5.4 Animals in Ag (CASE AFNR)
Flashcard
•
KG - University
38 questions
vibrinoceae
Flashcard
•
University
29 questions
Grupo Nutresa Caribbean Business
Flashcard
•
Professional Development
30 questions
EFFECTIVE COMMUNICATION (ENGLISH FOR COMMUNICATION 2022)
Flashcard
•
University
33 questions
Giải phẫu bệnh học
Flashcard
•
University
31 questions
Business and Operations Management Questions
Flashcard
•
12th Grade - University
20 questions
Readings Philippine History
Flashcard
•
KG - University
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Information Technology (IT)
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
Disney Characters
Quiz
•
Professional Development
20 questions
Customer Service
Quiz
•
Professional Development
10 questions
Food Idioms
Quiz
•
Professional Development
20 questions
NCCER Power Tools Quiz
Quiz
•
Professional Development