Skip to content

Commit 607fc81

Browse files
committed
improve things
1 parent 5567b2f commit 607fc81

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

exercises/02.variables/01.problem.let-and-const/README.mdx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,4 @@ const API_URL = 'https://api.example.com'
1919

2020
📜 [MDN - const](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const)
2121

22-
<callout-info>
23-
You might notice JavaScript sometimes produces surprising decimal results like
24-
`0.1 + 0.2 = 0.30000000000000004`. This is due to how computers store decimal
25-
numbers in binary (floating point representation). It happens in most
26-
programming languages, not just JavaScript. For currency calculations in real
27-
apps, consider working in cents (integers) or using specialized libraries.
28-
</callout-info>
29-
30-
📜 [MDN - Number representation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number#number_encoding)
31-
3222
🐨 Once you've completed the exercise, run `node index.ts` in the playground to test your work!

exercises/03.primitive-types/01.solution.numbers-and-strings/README.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,13 @@ const productName = 'TypeScript Guide' // TypeScript infers: string
1717
The explicit type annotations (`: number`, `: string`) are optional here but
1818
help document your intent. We'll see when they become essential in later
1919
exercises.
20+
21+
<callout-info>
22+
You might notice JavaScript sometimes produces surprising decimal results like
23+
`0.1 + 0.2 = 0.30000000000000004`. This is due to how computers store decimal
24+
numbers in binary (floating point representation). It happens in most
25+
programming languages, not just JavaScript. For currency calculations in real
26+
apps, consider working in cents (integers) or using specialized libraries.
27+
</callout-info>
28+
29+
📜 [MDN - Number representation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number#number_encoding)

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"host": "www.epicweb.dev",
1616
"displayName": "EpicWeb.dev",
1717
"displayNameShort": "Epic Web"
18-
}
18+
},
19+
"appType": "export"
1920
},
2021
"type": "module",
2122
"scripts": {

0 commit comments

Comments
 (0)