Type Conversions in JavaScript tutorial

Поділитися
Вставка
  • Опубліковано 30 вер 2024

КОМЕНТАРІ • 72

  • @sameekshagupta9518
    @sameekshagupta9518 4 роки тому +1

    Hi,
    You simplified it beautifully :)
    This is the only Video Tutorial I found where the comments section is also equally helpful :)
    Thanks. Keep creating :)

  • @zakariyamohamud8378
    @zakariyamohamud8378 4 роки тому +1

    i really i like it bcz i understnd it well,thank u.

  • @swarasworld4439
    @swarasworld4439 7 років тому +1

    This is very much frequently ask questions.!! Very Well Explained...Cheers.

  • @maciejs8293
    @maciejs8293 7 років тому +2

    I know this stuff, but I give a like because I learned a lot,a lot from previous videos. always easily digestible content

  • @yass-a
    @yass-a 7 років тому +2

    Thanks for the tutorial! Notice at minute 9, should rather use &&.

    • @Techsithtube
      @Techsithtube  7 років тому

      Thanks for pointing it out. I will let users know.

  • @vikrambam1184
    @vikrambam1184 2 роки тому

    Vikas
    Vishal
    i have to change all li :
    script :- let li = document.querySelectorAll('li')
    li.forEach(elm=>{
    for(let i = 0; i

  • @seniorhackersgaming8062
    @seniorhackersgaming8062 4 роки тому +1

    sir
    im searching job for 1 year
    till i does't get job
    and no company is calling for interview can you
    help me

    • @Techsithtube
      @Techsithtube  4 роки тому +1

      Which contry are you in? Have you had any interviews lately? Maybe its the issue with the resume .

    • @seniorhackersgaming8062
      @seniorhackersgaming8062 4 роки тому

      @@Techsithtube
      thanks sir
      for your response
      im in chennai
      i completed BE Mech
      but i have more interest in IT Technologies
      so i started learning programming
      and searching for IT
      After a Year pass i learned lot but no oppertunities for IT

  • @nikiiiiify
    @nikiiiiify 7 років тому +1

    You are awesome... Thanks for making your videos simple

  • @Sarmadfarhankhan
    @Sarmadfarhankhan 7 років тому +2

    hi techsith, you are amazing, you explain deep sh*t easily. requesting you to please make a video on JavaScript interview questions for 4 years to 8 years of experience. More precisely like make a video which cover all important topics , questions and answers and put title "before JavaScript interview". it will definitely help a lot of job seekers. cheers!
    send me your bank account details.

    • @Techsithtube
      @Techsithtube  7 років тому +4

      What a coincident I just finished recording the video about " Top 10 JavaScript Interview Question' I will release next Tuesday . I am also working on a video on how to prepare for Js interview.

    • @Sarmadfarhankhan
      @Sarmadfarhankhan 7 років тому +1

      hurray !

  • @robinsingh2652
    @robinsingh2652 2 роки тому

    I am from Java background and I am banging my head on my table, looking all this. Great video Thanks!

  • @shikharchaudhary6984
    @shikharchaudhary6984 5 років тому +1

    Best explanation

  • @seenuvasanv
    @seenuvasanv 6 років тому +1

    Helo boss,
    in addition the operation it is okay 4 + '2' = 42 (number to string conversion).
    But in subtraction
    4 - '2' = 2 (string to number conversion)
    Do You have any words for this..

    • @Techsithtube
      @Techsithtube  6 років тому +3

      + can work on numbers and strings. as for strings + means concat two strings. but '-' works only on numbers so the conversation is done accordingly.
      I am glad that you have curiosity that means you have desire to learn ..

    • @HimanshuSharma-vt8ke
      @HimanshuSharma-vt8ke 5 років тому

      Hey bro,
      I had the exact same doubt a couple of days ago. The thing is, think this way: if numerical 4 was converted to a string, i.e, '4' then it would be '4' - '2'. I mean, how do you subtract a string from a string?? I mean, it doesn't make sense, right? So, the - or the subtraction operator function decides to convert or coerce the string 2 to numerical 2 and then subtract 4 from 2. That's why you get 2 as the output.

    • @vandanasaini3520
      @vandanasaini3520 4 роки тому

      except +, other operator works exact same as their behavior, I think i am right techsith

  • @abhiabhang9938
    @abhiabhang9938 7 років тому +2

    awesome video....I learn a lot..thanks

  • @nikitaermishin
    @nikitaermishin 6 років тому

    techsith, very nice video, but you forgot about -0 ( Boolean(-0) === false )

    • @Techsithtube
      @Techsithtube  6 років тому

      Yes that is good one Nikita. Once i was asked this question in an interview.

  • @vandanasaini3520
    @vandanasaini3520 4 роки тому

    keep teaching us

  • @ckvinothkumar
    @ckvinothkumar 7 років тому +1

    Thanks Bro

  • @arshadqureshi5997
    @arshadqureshi5997 4 роки тому

    You are tooo good because of your examples i understand the logic..

    • @Techsithtube
      @Techsithtube  4 роки тому

      THank for watching Arshard. Keep on learning!

  • @rajabmuhamedrajab5128
    @rajabmuhamedrajab5128 4 роки тому

    Thank You

  • @jinitescapematrix
    @jinitescapematrix 2 роки тому

    nice

  • @pavithraraghav1256
    @pavithraraghav1256 4 роки тому

    Awesome

  • @HassanMalikTW
    @HassanMalikTW 7 років тому

    are you a Jin? make things magically easy

    • @Techsithtube
      @Techsithtube  7 років тому +1

      comments like this makes my day. Thanks for watching :)

  • @pichanakaduku8391
    @pichanakaduku8391 4 роки тому

    sir i have a doubt that why its showing output as 6 when "3" * "2" is written and why not "33"

    • @afique8932
      @afique8932 4 роки тому

      because it converts "3" into 3 and "2" into 2 so 3 * 2 = 6 gadhe!

  • @shivpatel8288
    @shivpatel8288 4 роки тому

    I really like your videos. They are very easy to understand!

  • @ruchirai5775
    @ruchirai5775 6 років тому

    Very nicely explained

  • @dmytromoroz4451
    @dmytromoroz4451 4 роки тому

    Thanks a lot for detailed explanation!

  • @karamjitbrar1825
    @karamjitbrar1825 4 роки тому

    just starting to learn javascript. Thanks, the content was really straightforward yet v informative

  • @HeyyJc
    @HeyyJc 7 років тому

    furthermore, NaN === NaN is actually false. If you want to check whether a value is NaN, make sure to use the isNaN() function.

    • @Techsithtube
      @Techsithtube  7 років тому

      Good Point. thanks!

    • @sabareeshk976
      @sabareeshk976 7 років тому

      Justin Chong there is Object.is it will return true.

    • @mom_and_me_art
      @mom_and_me_art 2 роки тому

      • Basically NaN and NaN are only one value of Number type.
      Let's say,
      let x = 2 * 'swastik' ;
      let y = 1 * 'techslith';
      console.log(x) ; //NaN
      console.log(y) ; //NaN
      • Both x and y are pointing to the same primitive value NaN, to check we should use Same Value Equality.
      For example:
      console.log( Object.is(x, y) ); //true
      • Strict Equality results in false.
      console.log( x===y ); //false
      • So remember this:
      NaN === NaN results in false.
      Object.is(NaN, NaN) results in true.

  • @mohsinrahman8107
    @mohsinrahman8107 7 років тому

    Hi techsith, Please make tutorial on Async/Await in Js with example.

    • @Techsithtube
      @Techsithtube  7 років тому +1

      Will do , I am currently researching on it.

  • @sabareeshk976
    @sabareeshk976 7 років тому +1

    the type of NaN really scares me...

    • @Techsithtube
      @Techsithtube  7 років тому

      i know. I have seen someone using if( Number(x) === NaN) which is obvidously not going to work .

    • @balledachandrahas8326
      @balledachandrahas8326 5 років тому

      It scared me too..

    • @balledachandrahas8326
      @balledachandrahas8326 5 років тому

      @@Techsithtube Excellent explanation as always.....Yes I've tried using this way too..

  • @shilpasyal55
    @shilpasyal55 5 років тому +1

    Thank you ☺️

  • @gilbertrosario8633
    @gilbertrosario8633 6 років тому

    Great video, you earned a sub!

  • @kasunrc
    @kasunrc 6 років тому

    good explanation

  • @v.sivamanoharreddy4545
    @v.sivamanoharreddy4545 7 років тому

    Dear TechSith, I would request you to do some tutorials on Proxy, Design Patterns in Javascript, Json, Ajax in Javascript, Angular, Node, React frameworks would be really helpful in cracking the interviews

  • @VelMurugan-bx1xh
    @VelMurugan-bx1xh 6 років тому

    Hi techsith amazing sir , I need redux with react...

    • @Techsithtube
      @Techsithtube  6 років тому

      Sure I will focus on React Redux next. :)

  • @hustlerswebschool
    @hustlerswebschool 6 років тому

    thank you

  • @fiskooriginal
    @fiskooriginal 7 років тому

    thank you

  • @RafaelSFTech
    @RafaelSFTech 5 років тому

    4:16 i was thinkin in 2 + 1 + '2' -> 2(1+2) = 212, lmao

  • @guimarquesini
    @guimarquesini 7 років тому

    Good video. I'm using your videos to prepare for next javascript interviews :) keep doing it. thanks

    • @Techsithtube
      @Techsithtube  7 років тому +1

      I am building a video to answer commonly asked JS interview questions. Will release next week . Good luck with the interview. I would love to know your experience with interviews like what kind of questions you get.

    • @guimarquesini
      @guimarquesini 7 років тому

      I'll share with you my experience there and the questions, I'll let you know! thanks!

    • @guimarquesini
      @guimarquesini 7 років тому +1

      Few topics that I've received questions: apply vs call vs bind, destructuring, hoisting, var vs let vs const, BEM, function scope, Object create, Object assign

    • @Techsithtube
      @Techsithtube  7 років тому

      what is BEM? I am very surprised to see Object.assign question . Do you mind sharing which company? only if you are comfortable. Thanks.

    • @guimarquesini
      @guimarquesini 7 років тому

      BEM is related to CSS (getbem.com/introduction/) I didn't know about it as well hahah