Values, types, and the console
입문~20 분0/4 단계
Your first Smart Ledger snapshot
JavaScript programs start with values. A business name is text, revenue is a number, and VAT registration is a yes/no fact. In this module you will store each value, inspect its type, and render a business snapshot on the page.
The browser console is a diagnostic tool, not a place to guess. Use it to see what the program actually knows.
안내
1
Create a constant named businessName and assign it a string.
힌트: Use: const businessName = '...';
2
Create monthlyRevenue as a number and vatRegistered as a boolean.
3
Log the type of at least one value with typeof.
4
Write the snapshot into the element with id output.
내 코드
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ViBot과 함께 바이브로 만들기무료 메시지 0 / 12개
이 단계에서 만들고 싶은 것을 설명해 주시면 코드를 작성해 드릴게요 — 그다음 적용을 클릭하면 에디터에 바로 들어갑니다. 이 단계: Create a constant named businessName and assign it a string.
실시간 미리보기
실시간 미리보기