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 Жыл бұрын
Thanks!
@supraconstruct4209 Жыл бұрын
Thanks man
@agastyakhati45412 ай бұрын
thanks dude
@katarinazzz4 жыл бұрын
I found out about your channel on The Odin Project. This is awesome and really funny! Thanks :D
@danbei22324 жыл бұрын
Finally a JavaScript video with good intro music!! :)
@reuvenkarasik17 жыл бұрын
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 :)
@krunoslavbanovac43567 жыл бұрын
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.
@Mathspy7 жыл бұрын
Oh God how did I live without these...
@landtechjobs4 жыл бұрын
Idk why I need to style a console log but okay... the rest is good. Thanks for the vid, gave it a thumbs up
@bragiodinsen46043 жыл бұрын
same reason you might put console.clear in your script =)
@vikramadityakokil7 жыл бұрын
Great video!! First thing i did after watching this video "open console -> console.log(console);"
@QuietQuest213 жыл бұрын
#TheOdinProject
@the_notorious_guy4 жыл бұрын
Wow !!!!!!! The green color is so Badass
@LazyBearHQ Жыл бұрын
Thanks man, 2023 and still useful
@gerardosimpson307 жыл бұрын
Great, now I know how facebook put his 'Stop' message in console.
@bluemarks98713 жыл бұрын
I like how the hexcode of the color green is #badass 😁
@maxstrootmann Жыл бұрын
The grouping one is really slick😎
@KenzoArts5 жыл бұрын
Wow, dude what is the name of the font in your js code ? It looks cool
@JorgeLuisCallalleTorres7 жыл бұрын
similar to console.dir(p) , is posible to see all property css in a specific element ?, for example ?
@scribl12 жыл бұрын
I'm just here to say I love your IDE fonts
@boredhuman237 жыл бұрын
Hi Wes, how did you write es6 in browser? I mean in script tag above closing body tag.
@hari19837 жыл бұрын
I already love JS, but you just made it infinitely more fun :-)
@SheriffKoder92 жыл бұрын
Awesome, never seen these ticks elsewehere !
@LearnedJohnАй бұрын
Here from The Odin Project
@alex-bh9nl2 жыл бұрын
how did you get your "Ls" to look like that?
@logomoniclearning66805 жыл бұрын
the console.error('shit') came rally handy.
@gerontocrazia7 жыл бұрын
console.table()
@skkitchenstore30853 жыл бұрын
That was a really good video, subbed.
@ThePolaris877 жыл бұрын
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-xs3ic2hi9o7 жыл бұрын
NICE Video! So useful for me
@UtkarshBhatt7 жыл бұрын
What font is that?
@musiclab58167 жыл бұрын
Operator Mono
@BosEriko7 жыл бұрын
Woah. This is awesome. Great video! Keep it up!
@matheusbarone91497 жыл бұрын
Hey Wes! Very nice tricks. A little question...how did you let your cursor pointer yellow? Thank you!
@ParsclickTV7 жыл бұрын
very nice and rare tutorial
@midoriyaallmight7 жыл бұрын
what was the intro music? hehe
@mackenkie2 жыл бұрын
Awesome! Lot of neat tricks here thanks!
@sanjaytk7 жыл бұрын
Thanks a lot for these helpful tips!!
@ChocolateTaiyaki4 ай бұрын
Whats thd point of using console? Its not like its gonna be printed in the document
@paulosilva-dm1qb4 жыл бұрын
Dog was not defined .How it woprked?
@aluuusch3 жыл бұрын
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?
@byedwardleung4 жыл бұрын
a lot to learn, my head hurts now
@professorkaos622 жыл бұрын
That intro song sounded like It's Dangerous Business by Underoath
@АлексейВоробьёв-щ8ф4ю7 жыл бұрын
Attribute Modifications
@Bukosaure3 жыл бұрын
Pretty informative and nice. Anyone has a cheatsheet of what is shown in the video? Or a write-up.
@edysegura7 жыл бұрын
Pretty awesome video!!! Thanks for sharing that with us!
@VictoriaSH1006 жыл бұрын
Please do video about chrome dev tools! About debugging with network with react
@pikarikawulf6 жыл бұрын
How can I download developer loops f12? Please tell me
@gangadharkaranapu90626 жыл бұрын
Awesome Man..
@rexromae177 жыл бұрын
good stuff here!
@mubashar149417 жыл бұрын
Great info.. Thanks Wes.
@2c-bee4 ай бұрын
Long live Odin!
@ralves7 жыл бұрын
Really useful, thanks!
@zohar100010006 жыл бұрын
beautiful! thanks a lot!
@gastonbuesas2081 Жыл бұрын
Thanks!
@NilanjanSiromani887 жыл бұрын
What is the name of the font you have used in the code ?
@NilanjanSiromani887 жыл бұрын
Sorry already answered ... :-) Operator Mono is my new goto font now
@edobrca75855 жыл бұрын
how remove new tab
@karlyufer7 жыл бұрын
Gracias por estos tips :D
@vigneshm50447 жыл бұрын
Thanks. keep Making more 😂
@r11sr4 жыл бұрын
loved it
@MrAahmadsalah5 жыл бұрын
i need this file, plz attach it , SAP
@noahschill14227 жыл бұрын
is it really 'must know'? hahaha. really really cool regardless.
@ymrmn7 жыл бұрын
Cool!
@sessonid50827 жыл бұрын
Hmu if you wanna smoke buds sometime
@nobody200228 ай бұрын
from the odin project in May,2024.
@haibaidzokwomandre1468Ай бұрын
TOP
@tonkihonks34305 жыл бұрын
#BADA55 😂!
@davidallsopp40304 жыл бұрын
using console.clear at the bottom is evil
@sessonid50827 жыл бұрын
The most emo intro on KZbin
@emberchord7 жыл бұрын
I don't understand the operator mono hype xD
@WesBos7 жыл бұрын
Mr Semmler, join us!
@emberchord7 жыл бұрын
nooo >_< I don't have the coin :D
@Klowdie000Ай бұрын
you are a sick person
@sabertaz6 жыл бұрын
all you should know about `console` (shorter and better) developers.google.com/web/tools/chrome-devtools/console/console-reference