10 Life-Saving JavaScript One-Liners 🔥 CODE LIKE A PRO 2022

Sdílet
Vložit
  • čas přidán 15. 07. 2024
  • 🦸 Become A VS Code SuperHero Today: vsCodeHero.com
    🧑🏾‍🤝‍🧑🏽 Join my Discord developer community: / discord
    In this video, I’ll show you 10 JavaScript one-liners that will make you look like a Professional Distinguished Engineer. These tips and tricks are next level!
    _____________________________________
    🛠️ Tools I use:
    🟠 codeSTACKr Theme: marketplace.visualstudio.com/...
    🟠 STACKr Code Font (Exclusive to my VS Code Course - vsCodeHero.com)
    🟠 SuperHero Extension Pack: marketplace.visualstudio.com/...
    _____________________________________
    ⏱️ Timestamps ⏱️
    00:00 - Intro
    00:11 - CAPITALIZE A STRING
    00:45 - COPY TO CLIPBOARD
    01:05 - FIND UNIQUE VALUES IN ARRAY
    01:34 - CHECK IF EVEN OR ODD
    02:03 - GET AVERAGE OF NUMBERS
    02:33 - REVERSE A STRING
    02:59 - CONVERT RGB TO HEX
    03:25 - GENERATE RANDOM HEX COLOR
    03:53 - CHECK IF ARRAY IS EMPTY
    04:38 - SHUFFLE AN ARRAY
    _____________________________________
    💖 Show support!
    PayPal: paypal.me/codeSTACKr
    _____________________________________
    👀 Watch Next:
    Playlist: Web Development For Beginners - • Web Development - Begi...
    _____________________________________
    🌐 Connect With Me:
    Website: www.codestackr.com
    Twitter: / codestackr
    Instagram: / codestackr
    Facebook: / codestackr
    _____________________________________
    ** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.
    #codeSTACKr #JavaScript #tipsandtricks

Komentáře • 38

  • @codeSTACKr
    @codeSTACKr  Před 2 lety

    🦸 Become A VS Code SuperHero Today: vsCodeHero.com
    🧑🏾‍🤝‍🧑🏽 Join my Discord developer community: discord.gg/A9CnsVzzkZ

  • @chetanhaobijamn
    @chetanhaobijamn Před 2 lety +1

    Thanks a lot for those one-liners. Saves me a lot of time while working on JS.

  • @hoekbrwr
    @hoekbrwr Před 2 lety +2

    Completely new to me. The definition of an (arrow) function can make things much clearer to understand lateron

  • @victorstone3720
    @victorstone3720 Před 2 lety +1

    A really helpful tip🙌

  • @azharhasan4347
    @azharhasan4347 Před 2 lety

    Great content would love more of this

  • @hemantpratapsingh236
    @hemantpratapsingh236 Před 2 lety

    That was awesome 👍👍

  • @pantho_6899
    @pantho_6899 Před 2 lety +1

    Thank you sir ❤️!!

  • @oneminutecoder
    @oneminutecoder Před 2 lety

    Thanks a lot

  • @CrazyCodingChannel
    @CrazyCodingChannel Před 2 lety +1

    Really hellpfull video, like

  • @prabuk3819
    @prabuk3819 Před 2 lety +2

    Most of the array examples are given in just number[] or string[], but in real world, we mostly play with Object Array.

  • @siyaram2855
    @siyaram2855 Před 2 lety

    Your VSCode look killer, Which theme and font are you using?

  • @ashish_prajapati_tr
    @ashish_prajapati_tr Před 2 lety +1

    amazing tricks

  • @keylanoslokj1806
    @keylanoslokj1806 Před 2 lety +1

    Can someone please explain the rgb to hexadecimal one? What exactly is going on?

  • @AbdoTech0
    @AbdoTech0 Před 2 lety +1

    Congratulations for 200K Subs , U Deserve more.. ✅❤

  • @rexestrada310
    @rexestrada310 Před 2 lety

    Hey Jesse :) while I wait for your video on how to create a minting website, can I do all the steps you show in your previous video on how to create a collection just to get a head start? Or will creating a minting website negate all these prior steps

    • @codeSTACKr
      @codeSTACKr  Před 2 lety

      For sure. Get your collection started and even upload the images and metadata to IPFS. Just stop at the minting part. That would be done from the website.

  • @tujanepatang
    @tujanepatang Před 2 lety +2

    Wow

  • @cdey3886
    @cdey3886 Před 2 lety +1

    how did you make your caret/cursor animation to be like that? Awesome video btw but please tell me lol it looks so smooth.

    • @codeSTACKr
      @codeSTACKr  Před 2 lety +1

      Thanks, it's just vs code cursor settings.

    • @cdey3886
      @cdey3886 Před 2 lety

      @@codeSTACKr ah thanks so mucchh :D

  • @dgcp354
    @dgcp354 Před 2 lety +1

    how did you manage to leave brads home, I want a video on that

  • @bboitech8920
    @bboitech8920 Před 2 lety +1

    Amazing

  • @kcdiazWTV
    @kcdiazWTV Před 2 lety +1

    Nice.

  • @krtirtho
    @krtirtho Před 2 lety

    one library (mostly): *lodash-es*
    One liners in one line

  • @m4saurabh
    @m4saurabh Před 2 lety +1

    I know 7 of them.

  • @amcheeze6782
    @amcheeze6782 Před 2 lety

    But how do you make a rightward double arrow???

  • @brucewernick6542
    @brucewernick6542 Před 4 měsíci

    Your copyToClipboard() gives me an error. Uncaught (in promise) DOMException: Failed to execute 'writeText' on 'Clipboard': Document is not focused. I 'm not sure what is causing this. When I search online, it seems like a common problem but I have not found a clear answer.

  • @tommyo2172
    @tommyo2172 Před 2 lety

    What font do you use?

    • @codeSTACKr
      @codeSTACKr  Před 2 lety +1

      It's a modified fira code font. link in description

  • @shopifypro
    @shopifypro Před rokem +1

    I think dev ed stole like 4 of these 😵‍💫in his last video..

  • @suelingsusu1339
    @suelingsusu1339 Před 2 lety +1

    👏👏👏👏👏🙏🙏🙏🙏🙏🙏🖖🖖🖖🖖🖖🖖

  • @acharafranklyn5167
    @acharafranklyn5167 Před 8 měsíci

    You hardly have git link to your codes ...why!!!

  • @ngneerin
    @ngneerin Před 2 lety

    Not quite helpful, do some Tut about design patterns in express js