
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.
Access all questions and much more by creating a free account
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
30 questions
Basic Vocabulary Flashcards
Flashcard
•
University
20 questions
Planes
Flashcard
•
University
26 questions
English Questions on Numbers and Verbs
Flashcard
•
KG - University
25 questions
SFU3063 Special Topics in Physics Chapter 1.1-1.2
Flashcard
•
University
22 questions
Rainwater revision
Flashcard
•
Professional Development
25 questions
9.2 Labor Unions and Regulations
Flashcard
•
12th Grade - University
30 questions
Lesson 10 Intermidate - L67
Flashcard
•
Professional Development
28 questions
Wrap up!
Flashcard
•
KG - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...