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.
ライブプレビュー
ライブプレビュー