Values, types, and the console
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.
手順
Create a constant named businessName and assign it a string.
ヒント: Use: const businessName = '...';
どこに書けばいい?
// 1. Create businessName as a string17 行目に書きましょう — そのコメントのすぐ下の空行です。
Create monthlyRevenue as a number and vatRegistered as a boolean.
Log the type of at least one value with typeof.
Write the snapshot into the element with id output.
あなたのコード
このステップで作りたいものを伝えてください。コードを書きます。あとは「適用」をクリックすればエディタに反映されます。 このステップ:Create a constant named businessName and assign it a string.