#13: TypeScript Objects Explained: Everything You Need to Know with Real Life Example

preview_player
Показать описание
Welcome, Mastering TypeScript Objects: The Complete Guide 🚀
In this comprehensive TypeScript tutorial, dive into the world of objects and classes to level up your development skills! 🎓

🔹 Learn the fundamentals of TypeScript objects and their role in object-oriented programming.
🔹 Explore object creation and initialization, and understand the significance of data types.
🔹 Discover object properties, methods, and access modifiers for secure and efficient code

😊 Become Member, get access to perks, free Source code, & more..

⌚TIMELINE⌚
0:00 - Introduction
0:15 - Source Code sale is live
1:05 - Understanding Objects in TypeScript
2:20 - Real-Life Example of Objects in JavaScript
5:50 - Accessing Data in TypeScript Objects
8:00 - Common Mistakes to Avoid When Working with TypeScript Objects
8:50 - Defining Object Types in TypeScript
12:40 - Object Types Limitations & Upcoming Updates
13:35 - Homework Time

************* 😍 Must Watch Videos For Web Development 😍 *************

Рекомендации по теме
Комментарии
Автор

Please do not get demotivated from the likes and views you are getting now, keep making cool and useful videos for us . ❤❤❤❤❤❤❤❤❤❤❤❤❤

rishabh
Автор

you are great explain all things and clear my all concepts i watch your videos from pakistan

wahajmughal
Автор

OSM !, Thapa sir, do create video like this .

sachingupta_ec
Автор

May I know when to use var, let and const ?
is const use to store array and map type data ?

sushrafshaikh
Автор

I am from Pakistan ...after watching this video, I am your new subscriber...great work...keep it up

zahidsham
Автор

Sir kya abhi ham css me nesting Selector ka use karke projects bana sakte hai

rameshkushwahamobile
Автор

Thankyou you are great 👍😊
~from 🇵🇰Pakistan

sahersaleem
Автор

Thank you thapa sir Your efforts are countless it's amazing I can say that No one have better methods than you Sir please sir mujhy job get krny ka koi tariqa btaien

abidtech
Автор

const product:{
name:string,
price:number,
quantity:number
}={
name: "Kitkat",
price: 10,
quantity: 10
}

And *_THANK YOU So Much_* 🙏🏻 for calling my name

DEEPANSHU_NAG
Автор

const obj:{
name: string;
price: number;
quantity: number
} = {
name: "Mobile Cover",
price: 200,
quantity: 3
}

ansumandas
Автор

//here we have create an object with properties as variable and fuction also
var person = {
firstName:"Tom",
lastName:"Hanks",
sayHello:function() { } //Type template
}
person.sayHello = function() {
console.log("hello "+person.firstName)
}
person.sayHello()

amitabhghosh
Автор

const product:{
name : string;
price : number;
quantity : number;
}={
name : "Dell",
price : 45000,
quantity : 2,
}

zahidsham
Автор

//todo Homework Time
//* Practice questions for map:
//? 1: Given an array of strings representing names, create a new array that contains the uppercase version of each name.

const arrString: string[] = [
"shiv",
"sahil",
"mandeep",
"nishant",
];

const upperCase:string[] = arrString.map(
(currString: string) => currString.toUpperCase()
);
console.log(arrString);
console.log(upperCase);

//? 2: Given an array of numbers, create a new array that contains the square of each number.
const numArr: number[] = [1, 3, 4, 5, 6];
const sqrNum: number[] = numArr.map((currNum: number) =>
Math.pow(currNum, 2)
);
console.log(numArr);
console.log(sqrNum);

//* Practice questions for filter:

const names: string[] = [
"Alice",
"Bob",
"Anna",
"Andrew",
"Alex",
];
//? 1: Given an array of strings, create a new array that contains only the strings with a length greater than 4.
const newStr:string[] = names.filter((currNames: string) => currNames.length > 4)
console.log(newStr)

//? 2: Given an Array of strings, filter out names that starts with the letter "A".
const newStr: string[] = names.filter(
(currName: string) => currName.charAt(0) === "B"
);
console.log(newStr);

chdxshiv
Автор

Sir, your payment gateway is not working, it simply redirects to download without payment

satyam_code
Автор

const product: {
name: string;
price: number;
quantity: number;
} = {
name: "Mobile",
price:
quantity: 20,
}

HassanKhan-ibqe
Автор

const product: {
name:string;
price:number;
quantity:number;
}={
name: "book",
price: 50,
quantity: 3,
}
console.log(product);

myhobby
Автор

example me object declaration me comma h instead of semicolon

saranshgoyal
Автор

const product: {
name: string;
price: number;
quantity: number
} = {
name: "Laptop",
price: 1000,
quantity: 5
}

nayyarabbas
Автор

sir source codes kya hai? and iska use kya hai ?

akshaygaikwad
Автор

thanku tumhare hi channel se padhraha hu or kai ni jauga thanks

sumitgoyal