인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

yeonjiqp1375's profile image
yeonjiqp1375

asked

JavaScript Beginner: Building a Strong Foundation

4. for, [Coding Time]

코드의 오류를 어떻게 해결해야 할 지 잘 모르겠습니다..ㅠㅠ

Resolved

Written on

·

525

0

안녕하세요!! 강의 감사히 잘 듣고 있습니다!!

다름이 아니라.. 코딩시간의 문제를 해결하고자 다음과 같이 코드를 짰더니 var oddN = 2n-1;에 밑줄이 그어지면서

Uncaught TypeError: Cannot mix BigInt and other types, use explicit conversions

라는 에러가 뜨는데요.

왜 그런 것인지 알 수 있을까요?

어떻게 바꾸어야 코드가 작동될지 잘 모르겠습니다..

oopjavascript

Answer 1

1

tonextday님의 프로필 이미지
tonextday
Instructor

2 x n

yeonjiqp1375's profile image
yeonjiqp1375

asked

Ask a question