Это видео недоступно.
Сожалеем об этом.

14 Must Know Chrome Dev Tools Tricks -

Поделиться
HTML-код
  • Опубликовано: 19 авг 2024
  • Hit that Subscribe button for more like this 👌 → #JavaScript30 Video 8 - Grab all the videos and starter code over at JavaScript30.com.

Комментарии • 98

  • @user-sh7xg3en7m
    @user-sh7xg3en7m 2 года назад +57

    Here's a summary of the 14 tips:
    1. Find code which modifies an element
    - Find the element you want to look the code for in the Elements tab on the DevTools (F12)
    - Right-click and go to 'Break on...'
    - Select 'attribute modifications'
    2 Regular
    console.log()
    Prints out to the console.
    3. Interpolated
    console.log('Hello I am a %s string', )
    Behaves like the printf() function of the C language.
    4. Styled
    console.log('%c some text...', )
    It lets us style the first argument using css with '%c'
    5. Warning
    console.warn()
    Prints out to the console with a yellow exclamation icon before it.
    6. Error
    console.error()
    Prints out to the console with a red X icon before it.
    7. Testing
    console.assert(, )
    If is false, will be output to the console.
    8. Clearing
    console.clear();
    Clears the console.
    9. Viewing DOM elements (1)
    console.log()
    Prints out the to the console along with its attributes and content.
    10. Viewing DOM elements (2)
    console.dir()
    Prints out a drop-down list of properties and methods in .
    11. Groups
    console.group()
    console.groupEnd()
    Prints out a drop-down which groups a set of console.logs together. must be the same to start and end the drop-down list.
    console.groupCollapsed()
    By default, the drop-down will be printed out uncollapsed, use the method above than console.group to change this behaviour.
    12. Counting
    console.count()
    Appends the number of times has been printed out.
    13. Timing
    console.time()
    console.timeEnd()
    Prints out how much time passed between time and timeEnd. must be the same.
    14. Table
    console.table()
    Prints out a table of the objects' properties and values.

  • @freakymeasures
    @freakymeasures 4 года назад +118

    Odin Project sent me here

    • @MehammedTeshome
      @MehammedTeshome 3 года назад +2

      me at 2021

    • @cardamonkhi466
      @cardamonkhi466 3 года назад

      @@MehammedTeshome im with you bra

    • @curseedz
      @curseedz 3 года назад +1

      Lets do it guys i'm doing it too!

    • @lucasbrasil6269
      @lucasbrasil6269 3 года назад

      @@MehammedTeshome Let's go Bro

    • @harunguven8581
      @harunguven8581 3 года назад +1

      Odin Project helped me to find this useful video, too!

  • @katarinazivkovic3102
    @katarinazivkovic3102 3 года назад +10

    I found out about your channel on The Odin Project. This is awesome and really funny! Thanks :D

  • @reuvenkarasik1
    @reuvenkarasik1 7 лет назад +32

    Awesome! I hope I'll remember all of those. I came to this video quite cynical thinking I'd already know most of it, but I learned many new things :)
    A small note: maybe this video should've been called differently since you mostly revealed console tricks and not general dev tools tricks (like the first tip). Maybe the other tabs of the chrome dev tools deserve their own video :)

    • @krunoslavbanovac4356
      @krunoslavbanovac4356 7 лет назад +15

      I came to learn that remembering stuff as such is useless and energy consuming, I'd rather try to remember that these exist, and if I decide I might need them, I would look in docs. By using them more often, I'll automatically remember it and will no longer need docs as reference. This is actually general approach towards all things, and then learning becomes faster, and we will eventually forget stuff like this, but reference stays in our heads, and we know these exist, just need to remind ourselves after long time without using it.

  • @danbei2232
    @danbei2232 4 года назад +5

    Finally a JavaScript video with good intro music!! :)

  • @vikramadityakokil
    @vikramadityakokil 7 лет назад +8

    Great video!! First thing i did after watching this video "open console -> console.log(console);"

  • @QuietQuest21
    @QuietQuest21 3 года назад +7

    #TheOdinProject

  • @landtechjobs
    @landtechjobs 4 года назад +8

    Idk why I need to style a console log but okay... the rest is good. Thanks for the vid, gave it a thumbs up

    • @bragiodinsen4604
      @bragiodinsen4604 3 года назад +4

      same reason you might put console.clear in your script =)

  • @Mathspy
    @Mathspy 7 лет назад

    Oh God how did I live without these...

  • @gerardosimpson30
    @gerardosimpson30 7 лет назад +7

    Great, now I know how facebook put his 'Stop' message in console.

  • @the_notorious_guy
    @the_notorious_guy 4 года назад +1

    Wow !!!!!!! The green color is so Badass

  • @LazyBearHQ
    @LazyBearHQ 10 месяцев назад

    Thanks man, 2023 and still useful

  • @gerontocrazia
    @gerontocrazia 7 лет назад +43

    console.table()

  • @hari1983
    @hari1983 7 лет назад +3

    I already love JS, but you just made it infinitely more fun :-)

  • @maxstrootmann
    @maxstrootmann 9 месяцев назад

    The grouping one is really slick😎

  • @BosEriko
    @BosEriko 7 лет назад +1

    Woah. This is awesome.
    Great video! Keep it up!

  • @logomoniclearning6680
    @logomoniclearning6680 5 лет назад +2

    the console.error('shit') came rally handy.

  • @skkitchenstore3085
    @skkitchenstore3085 2 года назад

    That was a really good video, subbed.

  • @scribl1
    @scribl1 Год назад

    I'm just here to say I love your IDE fonts

  • @SheriffKoder9
    @SheriffKoder9 Год назад

    Awesome, never seen these ticks elsewehere !

  • @user-xs3ic2hi9o
    @user-xs3ic2hi9o 7 лет назад +1

    NICE Video! So useful for me

  • @mackenkie
    @mackenkie 2 года назад

    Awesome! Lot of neat tricks here thanks!

  • @sanjaytk
    @sanjaytk 6 лет назад +1

    Thanks a lot for these helpful tips!!

  • @ParsclickTV
    @ParsclickTV 7 лет назад +1

    very nice and rare tutorial

  • @bluemarks9871
    @bluemarks9871 3 года назад

    I like how the hexcode of the color green is #badass 😁

  • @user-pc8qn4wr8b
    @user-pc8qn4wr8b 6 лет назад +1

    Attribute Modifications

  • @00el04
    @00el04 4 года назад +1

    a lot to learn, my head hurts now

  • @edysegura
    @edysegura 7 лет назад

    Pretty awesome video!!! Thanks for sharing that with us!

  • @gastonbuesas2081
    @gastonbuesas2081 Год назад

    Thanks!

  • @KenzoArts
    @KenzoArts 4 года назад +1

    Wow, dude what is the name of the font in your js code ? It looks cool

  • @JorgeLuisCallalleTorres
    @JorgeLuisCallalleTorres 7 лет назад +2

    similar to console.dir(p) , is posible to see all property css in a specific element ?, for example ?

  • @ralves
    @ralves 7 лет назад

    Really useful, thanks!

  • @mubashar14941
    @mubashar14941 7 лет назад

    Great info.. Thanks Wes.

  • @zohar10001000
    @zohar10001000 6 лет назад

    beautiful! thanks a lot!

  • @rexromae17
    @rexromae17 7 лет назад +1

    good stuff here!

  • @professorkaos62
    @professorkaos62 2 года назад

    That intro song sounded like It's Dangerous Business by Underoath

  • @gangadharkaranapu9062
    @gangadharkaranapu9062 5 лет назад

    Awesome Man..

  • @boredhuman23
    @boredhuman23 7 лет назад +1

    Hi Wes, how did you write es6 in browser? I mean in script tag above closing body tag.

  • @matheusbarone9149
    @matheusbarone9149 7 лет назад

    Hey Wes!
    Very nice tricks.
    A little question...how did you let your cursor pointer yellow?
    Thank you!

  • @karlyufer
    @karlyufer 6 лет назад

    Gracias por estos tips :D

  • @UtkarshBhatt
    @UtkarshBhatt 7 лет назад +5

    What font is that?

  • @VictoriaSH100
    @VictoriaSH100 6 лет назад

    Please do video about chrome dev tools! About debugging with network with react

  • @r11sr
    @r11sr 4 года назад

    loved it

  • @ymrmn
    @ymrmn 7 лет назад

    Cool!

  • @Bukosaure
    @Bukosaure 3 года назад

    Pretty informative and nice. Anyone has a cheatsheet of what is shown in the video? Or a write-up.

  • @vigneshm5044
    @vigneshm5044 7 лет назад

    Thanks. keep Making more 😂

  • @midoriyaallmight
    @midoriyaallmight 7 лет назад +2

    what was the intro music? hehe

  • @noahschill1422
    @noahschill1422 6 лет назад

    is it really 'must know'? hahaha. really really cool regardless.

  • @aluuusch
    @aluuusch 2 года назад

    Hmm, I honestly don't see the point in styling your console output. The only thing that matters is the index.html outcome, isn't it? Could some clarify for what it is still good?

  • @ChocolateTaiyaki
    @ChocolateTaiyaki 6 дней назад

    Whats thd point of using console? Its not like its gonna be printed in the document

  • @nobody20022
    @nobody20022 3 месяца назад

    from the odin project in May,2024.

  • @alex-bh9nl
    @alex-bh9nl Год назад

    how did you get your "Ls" to look like that?

  • @tonkihonks3430
    @tonkihonks3430 5 лет назад +2

    #BADA55 😂!

  • @paulosilva-dm1qb
    @paulosilva-dm1qb 4 года назад

    Dog was not defined .How it woprked?

  • @ThePolaris87
    @ThePolaris87 7 лет назад

    I would love to know how you are getting your colors to be highlighted, for example the red on line 27 at 3:04.
    I am using atom and can get this to work '#BADA55'; on line 16 with a package, but not 'red' on line 27.

  • @sessonid5082
    @sessonid5082 6 лет назад +3

    Hmu if you wanna smoke buds sometime

  • @pikarikawulf
    @pikarikawulf 6 лет назад

    How can I download developer loops f12? Please tell me

  • @edobrca7585
    @edobrca7585 5 лет назад

    how remove new tab

  • @davidallsopp4030
    @davidallsopp4030 4 года назад +1

    using console.clear at the bottom is evil

  • @sessonid5082
    @sessonid5082 6 лет назад

    The most emo intro on RUclips

  • @MrAahmadsalah
    @MrAahmadsalah 4 года назад

    i need this file, plz attach it , SAP

  • @emberchord
    @emberchord 7 лет назад +1

    I don't understand the operator mono hype xD

    • @WesBos
      @WesBos  7 лет назад +1

      Mr Semmler, join us!

    • @emberchord
      @emberchord 7 лет назад +2

      nooo >_< I don't have the coin :D

  • @NilanjanSiromani88
    @NilanjanSiromani88 6 лет назад

    What is the name of the font you have used in the code ?

    • @NilanjanSiromani88
      @NilanjanSiromani88 6 лет назад

      Sorry already answered ... :-)
      Operator Mono is my new goto font now

  • @germanduterte7110
    @germanduterte7110 4 года назад

    W0w

  • @sabertaz
    @sabertaz 6 лет назад

    all you should know about `console` (shorter and better)
    developers.google.com/web/tools/chrome-devtools/console/console-reference

  • @sachidanandsingh9324
    @sachidanandsingh9324 2 года назад

    Test

  • @borsaniasushant1
    @borsaniasushant1 7 лет назад

    console.clear() => LOL

  • @zephanj6665
    @zephanj6665 7 лет назад +1

    thats stupid it not developer tools

    • @kissu_io
      @kissu_io 6 лет назад +1

      zephanj666 it's what so? Pancake? 🥞

  • @wingsonthebus
    @wingsonthebus 2 года назад

    Rip to the little 'i' in Chrome's console.info()