14 Must Know Chrome Dev Tools Tricks -

  Рет қаралды 147,025

Wes Bos

Wes Bos

Күн бұрын

Пікірлер: 106
@ドラゴンハートゼクモル
@ドラゴンハートゼクモル 2 жыл бұрын
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.
@nirau
@nirau Жыл бұрын
Thanks!
@supraconstruct4209
@supraconstruct4209 Жыл бұрын
Thanks man
@agastyakhati4541
@agastyakhati4541 2 ай бұрын
thanks dude
@katarinazzz
@katarinazzz 4 жыл бұрын
I found out about your channel on The Odin Project. This is awesome and really funny! Thanks :D
@danbei2232
@danbei2232 4 жыл бұрын
Finally a JavaScript video with good intro music!! :)
@reuvenkarasik1
@reuvenkarasik1 7 жыл бұрын
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 жыл бұрын
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.
@Mathspy
@Mathspy 7 жыл бұрын
Oh God how did I live without these...
@landtechjobs
@landtechjobs 4 жыл бұрын
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 жыл бұрын
same reason you might put console.clear in your script =)
@vikramadityakokil
@vikramadityakokil 7 жыл бұрын
Great video!! First thing i did after watching this video "open console -> console.log(console);"
@QuietQuest21
@QuietQuest21 3 жыл бұрын
#TheOdinProject
@the_notorious_guy
@the_notorious_guy 4 жыл бұрын
Wow !!!!!!! The green color is so Badass
@LazyBearHQ
@LazyBearHQ Жыл бұрын
Thanks man, 2023 and still useful
@gerardosimpson30
@gerardosimpson30 7 жыл бұрын
Great, now I know how facebook put his 'Stop' message in console.
@bluemarks9871
@bluemarks9871 3 жыл бұрын
I like how the hexcode of the color green is #badass 😁
@maxstrootmann
@maxstrootmann Жыл бұрын
The grouping one is really slick😎
@KenzoArts
@KenzoArts 5 жыл бұрын
Wow, dude what is the name of the font in your js code ? It looks cool
@JorgeLuisCallalleTorres
@JorgeLuisCallalleTorres 7 жыл бұрын
similar to console.dir(p) , is posible to see all property css in a specific element ?, for example ?
@scribl1
@scribl1 2 жыл бұрын
I'm just here to say I love your IDE fonts
@boredhuman23
@boredhuman23 7 жыл бұрын
Hi Wes, how did you write es6 in browser? I mean in script tag above closing body tag.
@hari1983
@hari1983 7 жыл бұрын
I already love JS, but you just made it infinitely more fun :-)
@SheriffKoder9
@SheriffKoder9 2 жыл бұрын
Awesome, never seen these ticks elsewehere !
@LearnedJohn
@LearnedJohn Ай бұрын
Here from The Odin Project
@alex-bh9nl
@alex-bh9nl 2 жыл бұрын
how did you get your "Ls" to look like that?
@logomoniclearning6680
@logomoniclearning6680 5 жыл бұрын
the console.error('shit') came rally handy.
@gerontocrazia
@gerontocrazia 7 жыл бұрын
console.table()
@skkitchenstore3085
@skkitchenstore3085 3 жыл бұрын
That was a really good video, subbed.
@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.
@ศิรินทราเมืองชุม
@ศิรินทราเมืองชุม 7 жыл бұрын
Paul Rail BaDaA55
@ศิรินทราเมืองชุม
@ศิรินทราเมืองชุม 7 жыл бұрын
Paul Rail @Metalo @attlassistcre 17พ.ค 2016 metal On lee
@user-xs3ic2hi9o
@user-xs3ic2hi9o 7 жыл бұрын
NICE Video! So useful for me
@UtkarshBhatt
@UtkarshBhatt 7 жыл бұрын
What font is that?
@musiclab5816
@musiclab5816 7 жыл бұрын
Operator Mono
@BosEriko
@BosEriko 7 жыл бұрын
Woah. This is awesome. Great video! Keep it up!
@matheusbarone9149
@matheusbarone9149 7 жыл бұрын
Hey Wes! Very nice tricks. A little question...how did you let your cursor pointer yellow? Thank you!
@ParsclickTV
@ParsclickTV 7 жыл бұрын
very nice and rare tutorial
@midoriyaallmight
@midoriyaallmight 7 жыл бұрын
what was the intro music? hehe
@mackenkie
@mackenkie 2 жыл бұрын
Awesome! Lot of neat tricks here thanks!
@sanjaytk
@sanjaytk 7 жыл бұрын
Thanks a lot for these helpful tips!!
@ChocolateTaiyaki
@ChocolateTaiyaki 4 ай бұрын
Whats thd point of using console? Its not like its gonna be printed in the document
@paulosilva-dm1qb
@paulosilva-dm1qb 4 жыл бұрын
Dog was not defined .How it woprked?
@aluuusch
@aluuusch 3 жыл бұрын
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?
@byedwardleung
@byedwardleung 4 жыл бұрын
a lot to learn, my head hurts now
@professorkaos62
@professorkaos62 2 жыл бұрын
That intro song sounded like It's Dangerous Business by Underoath
@АлексейВоробьёв-щ8ф4ю
@АлексейВоробьёв-щ8ф4ю 7 жыл бұрын
Attribute Modifications
@Bukosaure
@Bukosaure 3 жыл бұрын
Pretty informative and nice. Anyone has a cheatsheet of what is shown in the video? Or a write-up.
@edysegura
@edysegura 7 жыл бұрын
Pretty awesome video!!! Thanks for sharing that with us!
@VictoriaSH100
@VictoriaSH100 6 жыл бұрын
Please do video about chrome dev tools! About debugging with network with react
@pikarikawulf
@pikarikawulf 6 жыл бұрын
How can I download developer loops f12? Please tell me
@gangadharkaranapu9062
@gangadharkaranapu9062 6 жыл бұрын
Awesome Man..
@rexromae17
@rexromae17 7 жыл бұрын
good stuff here!
@mubashar14941
@mubashar14941 7 жыл бұрын
Great info.. Thanks Wes.
@2c-bee
@2c-bee 4 ай бұрын
Long live Odin!
@ralves
@ralves 7 жыл бұрын
Really useful, thanks!
@zohar10001000
@zohar10001000 6 жыл бұрын
beautiful! thanks a lot!
@gastonbuesas2081
@gastonbuesas2081 Жыл бұрын
Thanks!
@NilanjanSiromani88
@NilanjanSiromani88 7 жыл бұрын
What is the name of the font you have used in the code ?
@NilanjanSiromani88
@NilanjanSiromani88 7 жыл бұрын
Sorry already answered ... :-) Operator Mono is my new goto font now
@edobrca7585
@edobrca7585 5 жыл бұрын
how remove new tab
@karlyufer
@karlyufer 7 жыл бұрын
Gracias por estos tips :D
@vigneshm5044
@vigneshm5044 7 жыл бұрын
Thanks. keep Making more 😂
@r11sr
@r11sr 4 жыл бұрын
loved it
@MrAahmadsalah
@MrAahmadsalah 5 жыл бұрын
i need this file, plz attach it , SAP
@noahschill1422
@noahschill1422 7 жыл бұрын
is it really 'must know'? hahaha. really really cool regardless.
@ymrmn
@ymrmn 7 жыл бұрын
Cool!
@sessonid5082
@sessonid5082 7 жыл бұрын
Hmu if you wanna smoke buds sometime
@nobody20022
@nobody20022 8 ай бұрын
from the odin project in May,2024.
@haibaidzokwomandre1468
@haibaidzokwomandre1468 Ай бұрын
TOP
@tonkihonks3430
@tonkihonks3430 5 жыл бұрын
#BADA55 😂!
@davidallsopp4030
@davidallsopp4030 4 жыл бұрын
using console.clear at the bottom is evil
@sessonid5082
@sessonid5082 7 жыл бұрын
The most emo intro on KZbin
@emberchord
@emberchord 7 жыл бұрын
I don't understand the operator mono hype xD
@WesBos
@WesBos 7 жыл бұрын
Mr Semmler, join us!
@emberchord
@emberchord 7 жыл бұрын
nooo >_< I don't have the coin :D
@Klowdie000
@Klowdie000 Ай бұрын
you are a sick person
@sabertaz
@sabertaz 6 жыл бұрын
all you should know about `console` (shorter and better) developers.google.com/web/tools/chrome-devtools/console/console-reference
@germanduterte7110
@germanduterte7110 5 жыл бұрын
W0w
@borsaniasushant1
@borsaniasushant1 7 жыл бұрын
console.clear() => LOL
@sachidanandsingh9324
@sachidanandsingh9324 3 жыл бұрын
Test
@zephanj6665
@zephanj6665 7 жыл бұрын
thats stupid it not developer tools
@kissu_io
@kissu_io 7 жыл бұрын
zephanj666 it's what so? Pancake? 🥞
@wingsonthebus
@wingsonthebus 2 жыл бұрын
Rip to the little 'i' in Chrome's console.info()
@haibaidzokwomandre1468
@haibaidzokwomandre1468 Ай бұрын
TOP
Google Chrome Developer Tools Crash Course
51:20
Traversy Media
Рет қаралды 690 М.
How is this Website so fast!?
13:39
Wes Bos
Рет қаралды 1,2 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Make a JavaScript Drum Kit in Vanilla JS! #JavaScript30 1/30
19:39
8 Must Know JavaScript Array Methods
10:05
Web Dev Simplified
Рет қаралды 1 МЛН
The Dome Paradox: A Loophole in Newton's Laws
22:59
Up and Atom
Рет қаралды 1,1 МЛН
JavaScript Pro Tips - Code This, NOT That
12:37
Fireship
Рет қаралды 2,5 МЛН
Humanoid Robot Trends to Watch in 2025
4:17
CNET
Рет қаралды 1,4 М.
30 Chrome DevTools Tips
42:56
Nodecasts
Рет қаралды 33 М.
Coding apps with English
14:05
Wes Bos
Рет қаралды 25 М.
This CSS Backlight Effect is so damn cool!
3:18
Wes Bos
Рет қаралды 16 М.
Debugging JavaScript - Chrome DevTools 101
7:28
Chrome for Developers
Рет қаралды 843 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН