커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
2-3
웹개발이 처음이어도 쉽게 배우는 GPT 웹개발 v0
2주차
북마크
윤*진
댓글
3
추천
0
조회수
7
조회수
7
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.


강사님이 하시는 대로 25번 코드까지 입력해서 default browser를 새로고침 했는데 강사님처럼 Bob이 안 나오고 저런 경고 문구가 뜨네요. 계속 다시 입력해도 똑같습니다. 무엇이 문제인지, 어디부터 잘못된 것인지 알 수 있을까요?




스파르타 즉문즉답




작성한 코드 및 에러 메세지

작성한 코드

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Document</title>

</head>

<body>

   

    <script>

        let a_list = []

        let b_list = [1, 2, 'hey', 3]


        console.log(b_list[0])

        console.log(b_list[1])

        console.log(b_list[2])


        b_list.push('헤이')

        console.log(b_list)

        consolel.log(b_list.length)


        let a_dict = {}

        let b_dict = {'name': 'Bob', 'age': 21}


        console.log(b_dict['name'])

       

    </script>

</body>

</html>


에러 메세지

Uncaught ReferenceError: consolel is not defined

  at list_dictionary.html:20:9

(anonymous) @ list_dictionary.html :20




취소
 공유
취소
댓글 0
댓글 알림
나의얼굴