Save
freeCodeCamp
TypeScript freeCodeCamp
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Michael Angelo Cantara
Visit profile
Cards (581)
What programming language is TypeScript based on?
JavaScript
View source
What is the current trend regarding JavaScript?
It is widely used and debated
View source
What do many people claim after starting TypeScript?
They don't want to return to
JavaScript
View source
What is TypeScript often referred to as?
A
superset
of
JavaScript
View source
What does TypeScript allow you to do with JavaScript code?
Write it in a more precise manner
View source
What is a key benefit of using TypeScript?
It catches
errors
while writing code
View source
What happens to TypeScript code when compiled?
It is converted into
JavaScript
View source
What is the main focus of TypeScript?
Type safety
View source
What does TypeScript prevent in JavaScript?
Odd behavior due to
type mismatches
View source
What is static checking in TypeScript?
Analyzing code for
potential
errors
View source
How does TypeScript help during coding?
By providing hints for
potential
errors
View source
What is the relationship between TypeScript and JavaScript?
TypeScript is a
development
tool for JavaScript
View source
What file extension is used for TypeScript files?
.ts
View source
What is the purpose of the .tsx file extension?
It combines
TypeScript
with
JSX
syntax
View source
What does transpiling mean in the context of TypeScript?
Converting TypeScript code into
JavaScript
View source
What is a common misconception about TypeScript?
That it reduces the
amount
of code written
View source
What does TypeScript help to produce in code?
More
scalable
and
maintainable
code
View source
What is the main job of TypeScript?
To analyze code for
potential
errors
View source
What is the TypeScript lang.org used for?
To run TypeScript and see
JavaScript
output
View source
What does TypeScript allow you to do with objects?
Define
properties
and
types
for them
View source
What happens if you try to access a property that doesn't exist in TypeScript?
You receive a
squiggly line
error
View source
What does the right-hand side produce in the example?
JavaScript
code
View source
What is the purpose of the console.log in the example?
To print a
message
to the console
View source
What error does TypeScript provide when accessing a non-existent property?
Property doesn't exist error
View source
What is the result of adding two numbers in TypeScript?
It produces the same result as
JavaScript
View source
How is TypeScript described in the video?
As a development tool dependent on
JavaScript
View source
What are the two different installations of TypeScript mentioned?
Global
system installation and
project
installation
View source
What is required for using TypeScript in a project?
An additional TypeScript
config file
View source
What command is used to install TypeScript globally?
NPM
install TypeScript -g
View source
What should you check to ensure Node is installed?
Run
node
-v command
View source
What does Node provide that is useful for TypeScript?
A utility called
NPM
View source
What is the purpose of the TSC command?
To execute
TypeScript
files
View source
What does the TSC command followed by -v do?
Displays the
version
of TypeScript
View source
What file extension should TypeScript files have?
.ts
View source
What happens when you compile a TypeScript file?
A
JavaScript
file is generated
View source
What does TypeScript help prevent when coding?
Common
coding
errors
in
JavaScript
View source
What is the purpose of the playground on the TypeScript website?
To
experiment
with TypeScript code
View source
What is the TS config file used for?
To
configure
TypeScript settings in
projects
View source
Why is TypeScript considered a wrapper around JavaScript?
It enhances JavaScript with
type safety
features
View source
Why is GitBash recommended for Windows users?
It provides
Linux-friendly
commands
View source
See all 581 cards