Day-14 Debugging with Console and Breakpoints

So Eun Ahn·2021년 1월 14일
0

JavaScript

목록 보기
17/26
post-custom-banner

Breakpoints

At each breakpoint, JavaScript will pause executing, and you can analyze each step. For google chrome youcan do that on source tap or you can use

debugger;

Degugging with Console

1)Identify What is the problem
2)Find

console.log();
console.table();
console.warn();
console.error();

3)Fix

const measurement = {
 	a= 'ab',
    b= 'bc',
    c= Number(prompt()); // anything you put in the prompt will turns out to be string, so need Number() !!

Recap

Object

Individual element inside array cannot holds specific names.
objects are containers for named values called properties or methods

const car{
	type: BMW,
    color: White,
    model: 432i
}
profile
오늘도 새로운 도전을 한다
post-custom-banner

0개의 댓글