TypeScript Beginner Tutorial 5 | Basic Variable Types 1

Published: 18 November 2021
on channel: Automation Step by Step
6,447
82

All FREE courses - https://automationstepbystep.com/
Types of Variables:
Number
String
Boolean
Null
Undefined
Arrays


Number
let x: number = 10


String
let name: string = ‘TypeScript’


Boolean
let learningTypeScript: boolean = true


Static type checking, prevent from making mistakes
Accurate Intellisense


Undefined
A variable that has been declared but not yet assigned value
let u: undefined = undefined


Null
Null is assignment value. Can be assigned as representation of no value
let n: null = null


Null and undefined are sub types i.e. null and undefined can be assigned to boolean, number and string variables


#TypeScriptTutorials
Stories by Raghav - https://automationstepbystep.com/stor...
My Udemy Courses - https://automationstepbystep.com/udem...


Every LIKE & SUBSCRIPTION gives me great motivation to keep working for you


You can support my mission for education by sharing this knowledge and helping as many people as you can


If my work has helped you, consider helping any animal near you, in any way you can.


_______ ONLINE COURSES TO LEARN _______
https://automationstepbystep.com/free...


Never Stop Learning
Raghav


Watch video TypeScript Beginner Tutorial 5 | Basic Variable Types 1 online, duration hours minute second in high quality that is uploaded to the channel Automation Step by Step 18 November 2021. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 6,447 times and liked it 82 visitors.