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.