Javascript in 1 shot in Hindi | part 1

preview_player
Показать описание
00:00:00 - Javascript for beginners
00:05:04 - Setting up environment
00:16:53 - Save and work on GitHub
00:27:14 - Let const var
00:43:54 - Datatypes and ECMA standards
01:01:55 - Datatyope conversion confusion
01:14:46 - Why string to number
01:29:46 - comparison of datatypes
01:38:38 - datatypes summary
01:56:40 - stack and heap memory
02:06:34 - String in javascript
02:29:17 - Number and maths
02:52:34 - date and time
03:10:47 - Array in javascript
03:29:42 - Array part 2
03:45:23 - Objects in depth
04:03:31 - Objects part 2
04:21:13 - Objects destructuring and JSON API
04:34:46 - Functions and parameters
04:53:59 - functions with objects
05:05:14 - Global and local scope
05:14:51 - Scope level and mini hoisting
05:29:47 - this and arrow function
05:48:16 - Immediately invoked function
05:55:33 - How does javascript works behind the scene
06:21:45 - Control flow in javascript
07:14:34 - for loop break and continue
07:39:05 - while do while loop
07:49:24 - High order array loops
08:23:35 - filter map and reduce

Sara code yaha milta h

Discord pe yaha paaye jaate h:
Instagram pe yaha paaye jaate h:
Рекомендации по теме
Комментарии
Автор

Timestamp b laga diye h. Mujhe to laga ki aap logo bologe ki sir aapne videos me itni mhnt ki, timestamp hum dete h comments me. 😉
Ab faila do is video ko sab jgh, kr do system hang

chaiaurcode
Автор

Jo koi meri tarah comment padhke start karne wala he unko me personally khena chahunga... just watch it ... kyuki mene complete kiya and muje nai lagta ki koi paid course bhi itne efforts dega hamare liye, thank you hitesh sir❤ Love from Gujarat

niravvaghela
Автор

5:11 [ Setting up environment ]
1 The difference between .js and .txt file is that .js file can be run
2 Environment Node js/ deno js (in past html was needed but not now)

16:53 [ Git hub ]
1 code
ctrl + shft + p add dev configuration file

27:14 [ let var const ]

1 variable declaring best practices 

2 const variable can't be modified 

3 console.table

4 js used to not work on scope

5 prefer not use var

6 variable with out initializing is undefined


43:54 [ data types ECMA standard ]

1 use strict 

2 alert (" ")

3 only code execution is not but goal should always be readable (prettier)

4 mdn doc tc39

5 data types

   - number

   - bugInt

   - string

   - boolean

   - null

   - undefined 

   - symbol 

Null is object


Object


1:01:55 [ data type conversation ]


- type of normal = lowercase

- "33" => 33 number

- "33abc" => NaN 

- true => 1

- false => 0

- 1 , " "  => true

- 0, " ", "abc" => false


1:14:46 [ why string to number]

Arithmetic Operation

1 + "2" => 12

3 + 3 - 3 * 3 / 3 +( 2 + 2 )

+true  => 1

+""  => 0

Prefix increment

Postfix increment 


1:29:49 [ comparison of data type ]

>

<

<=

>=

==

===

(Don't compare different data types)

null > 0

null< 0

null <= 0 => true bcz null is converted to 0

[Summary]

- Comparing same datatypes are easy to predict 

- Don't compare different data types



1:38:38 [ data type summary ]

- interview related questions 

- primitive and non primitive (call by value, call by reference)

- primitive:7 (call by value)

- string, number, bolean, null, undefined, symbol, BigInt

- non primitive:3 (call by reference)

- arrays, object, function 


- dynamically type vs statically type

- js is dynamically typed

- const id = Symbol("123")

- const anotherId = Symbol("123")

- id === anotherId => false

- array, object, function overview 

- typeof datatyped is available on documentation


01:56:40 - [ stack and heap memory ]
- Primitive data type goes to Stack we get a copy of that value.
- Non-Primitive data type goes to Heap we get refrence of that value.

02:06:34 [ Strings in JS ]
- strings can be donated by ' or "
- to concatenate we can use
- back tick (sting interpolations)
e.g `hello ${name}`
- sting is object but it has length property
- it can be access as
e.g stringName[0]
- stringName.__proto__
- stringName.toUpperCase()
- stringName.charAt()
- stringName.indexAt()
- stringName.substing(0, 4) can have -ve value
- stringName.slice(-7, 4) can have -ve value
- stringName.trim(), .trimStart(), .trimEnd()
- stringName.replace('what to search', 'what to replace with')
- stringName.includes('name')
- stringName.split('sepater', 'limit')
- search for small() yourself

02:29:17 - [ Number and maths ]
Number
- Type conversation
-const score = 400 (implicit)
-balance = new Number(100) (explicit, this return an object)
- use __proto__ on both as previous to get all methods
const balance = 100.12323
// used for how many values after decimal
-balance.toFixed(2) // 100.12
// used for how many values to take in total (priority is before decimal)
- balance.toPrecision(4) // 100.1 (returns a string)
const hundreds =
// inserts commas
-balance.toString()
Maths
// console.log(Math.abs(-4));
// console.log(Math.round(4.6));
// console.log(Math.ceil(4.2));
// console.log(Math.floor(4.9));
// console.log(Math.min(4, 3, 6, 8));
// console.log(Math.max(4, 3, 6, 8));
console.log(Math.random());
+ 1);

02:52:34 - [ date and time ] (I know following code is a mess but will try to give a consice note on date)
JavaScript Date objects represent a single moment in time in a platform-independent format. Date objects encapsulate an integral number that represents milliseconds since the midnight at the beginning of January 1, 1970, UTC (the epoch).
Note: TC39 is working on Temporal

let myDate = new Date()
console.log(myDate); // 2024-01-04T07:35:09.154Z
// Thu Jan 04 2024 07:35:09 GMT+0000 (Coordinated Universal Time)
console.log('dateString '+ myDate.toDateString()); // dateString Thu Jan 04 2024
console.log('isoString '+ myDate.toISOString()); // isoString 2024-01-04T07:35:09.154Z
console.log('JSON '+ myDate.toJSON()); // JSON 2024-01-04T07:35:09.154Z
console.log('LocaleDateString '+ myDate.toLocaleDateString()); // LocaleDateString 1/4/2024
console.log('LocaleString '+ myDate.toLocaleString()); // LocaleString 1/4/2024, 7:35:09 AM
console.log('LocaleTimeString '+ myDate.toLocaleTimeString()); // LocaleTimeString 7:35:09 AM

let myDate = new Date()
console.log(myDate);

console.log('dateString '+ myDate.toDateString());
console.log('isoString '+ myDate.toISOString());
console.log('JSON '+ myDate.toJSON());
console.log('LocaleDateString '+ myDate.toLocaleDateString());
console.log('LocaleString '+ myDate.toLocaleString());
console.log('LocaleTimeString '+ myDate.toLocaleTimeString());

myDate 2024-01-04T07:35:09.154Z
String Thu Jan 04 2024 07:35:09 GMT+0000 (Coordinated Universal Time)
dateString Thu Jan 04 2024
isoString 2024-01-04T07:35:09.154Z
JSON 2024-01-04T07:35:09.154Z
LocaleDateString 1/4/2024
LocaleString 1/4/2024, 7:35:09 AM
LocaleTimeString 7:35:09 AM

// creating a custom date (months start from 0)
let myCreatedDate = new Date(2023, 0, 23) // Mon Jan 23 2023
let myCreatedDate = new Date(2023, 0, 23, 5, 3) // 1/23/2023, 5:03:00 AM
let myCreatedDate = new Date("2023-01-14") // YYYY-MM-DD month start from 1
let myCreatedDate = new Date("01-14-2023");
// MM-DD-YYYY

let myTimeStamp = Date.now();
console.log(myTimeStamp); // milli seconds passed from January 1, 1970
// returns time in milliseconds
// returns time in seconds

let newDate = new Date();
console.log(newDate);
+ 1); // starts from 0
// starts from monday

`${newDate.getDay()} and the time ` use back ticks to create full date and time

newDate.toLocaleString("default", {
weekday: "long",
});






(Attention: These are my personal notes.

Everything taught by sir is not here I only note things that I find need of and you can take benefit from it as you like. 😊)

l-_._-l
Автор

START DATE - 18 January (Morning)
COMPLETE DATE - 20 January (Afternoon)
Thank you for this amazing series :)

severussnape
Автор

The best thing about this channel is He explains everything in detail and in a very calm and composed way!

cybrbby
Автор

A quick tip for those who are using for in loop for arrays.

remember that the key used for (const key in arr) here is a string so if u want to do some operations on that key thinking its a number that is not possible.

Why is the key a string you would ask that is because its being used for an object and object takes strings as keys.

For example:

const sum = function (arr) {
for (let i in arr) {
// since i is a string so we need to convert it to a number with parseInt method
i = parseInt(i, 10);
if(i < arr.length-1) {
arr[ i ] = arr[ i ] + arr[ i+1 ];
}
}
return arr;
}

console.log(sum(arr)); This will print an array with elements that have sum of adjacent element.

shubhsharma
Автор

I'm Hafiz Waqar Ahmed, and I'm from Pakistan. I've watched many YouTube JavaScript courses, but because I'm new to this field, I couldn't understand them well. Your teaching style is great, and I hope you'll keep teaching. Your explanations really help me learn.

hafizwaqar
Автор

JavaScript is a dynamically typed language, which means that data types of variables are determined by the value they hold at runtime and can change throughout the program as we assign different values to them.

khitijkarmakar
Автор

Hitesh, you can't imagine what you are doing for us. Your efforts are greatly appreciated. Thank you for sharing this wonderful content with us.

nusratlines
Автор

START DATE - 30 May (Morning)
COMPLETE DATE - 1 June (Afternoon)
Thank you for this amazing series :) (2)

WebAquib
Автор

Started yesterday! Being a final year student its very important to clear basics for interview purpose and to build something. Your video has been a life-saver for me! Being a chai-lover, I always keep my chai ready before coding and so do you while teaching. You are really a good teacher, its always quality over quantity of videos for you. Cheers!

drishyamishra
Автор

10: 34 pm 1st November 2023
I have completed a 9-hour-long course on JavaScript ✌:)
Thank you for this valuable series. I appreciate your efforts, sir.

amna.sadiakorai
Автор

This channel deserves 1m+ subscribers. The way sir teaches the concepts is Mind-blowing .
From now onwards, this channel will be my first preference in terms of coding .🤴🤴🤴🤴🤴🤴🤴🤴

stromsen
Автор

First time i saw any tutorial from this man.
He is truly a Gem❤
9hours of pure knowledge, best tutorial on YouTube for beginners.
he will clear all your doubts.
Thanks alot sir!!
Huge Respect from Pakistan.

kedits
Автор

finally completed it took me 13 days to complete it... It's an amazing content!! ( 28 Dec - 10 Jan)

visheshagrawal
Автор

sir this course is something else, his is going to set a benchmark for others for the years to come, really hats off to you and your efforts.

oynijsu
Автор

Sikhane wale toh bhot hai per aap jaisa real and practical knowledge share krne wale bhot km hai
Thanks from chhattisgarh ❤

HelloBhavendra
Автор

Love for hindi ❤ . 3 days me part 1 complete hogya without feeling stressed or overwhelmed. A lots of information explained in intersting way always makes learning fun. Thankyou hitesh sir for your efforts. Hindi me coding is my personal favorite now..

hexmgph
Автор

This is the best, complete, most logical, most meaningful one shot ever i have seen in javascript . hatttts of to sirr for hardwork and dedication for students on youtube they are doing their best to provide us with the most complete series without a payment shared with friends too uh deserve millions more viewss all the best

anamveenkaur
Автор

One of the Best JavaScript Series on Youtube

Go_