콘솔 랭글링
콘솔에 콘솔을 기록해 본 적이 있습니까?

그래서 당신은 좋은 ol '
console.log()
을 알고 있습니까?콘솔이 할 수 있는 것은 그것만이 아니라 가장 기본적인 것입니다.
콘솔을 사용하여 콘솔을 기록해 본 적이 있습니까? 아니? 당신은 그것을 시도해야합니다.
콘솔은 콘솔이 무엇을 할 수 있는지 보여줍니다.

오늘은 콘솔 개체에서 사용할 수 있는 두 가지 기능에 대해 이야기하겠습니다.
console.table()
및 console.trace()
두 개의 객체가 있다고 가정해 보겠습니다.
const carA = {make: 'Ford', model: 'F150', year: '2018', color: 'white'}
const carB = {make: 'Ford', model: 'F250', year: '2016', color: 'blue'}
디버깅을 하고 싶고 이러한 개체를 콘솔에 인쇄해야 하는 경우
console.log()
를 사용할 수 있지만 보기에는 좋지 않습니다.console.table()
가 두 개체를 얼마나 깔끔하게 표시할 수 있는지 살펴보십시오.
헤더를 클릭하기만 하면 두 행을 열별로 정렬할 수도 있습니다!
오늘 이야기할 또 다른 콘솔 기능은
console.trace()
입니다. 그러면 콘솔에 스택 추적이 출력됩니다.
오늘은 여기까지입니다.
디버깅이 조금 덜 지루하도록 도움이 되었기를 바랍니다. 이제 다음 스탠드업에서 새로운 콘솔 기술을 뽐내십시오.
건배!
Reference
이 문제에 관하여(콘솔 랭글링), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/raz_chiriac_b5dbbe8de7932/console-wrangling-2k2p텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)