mirror of
https://github.com/XFox111/PasswordGeneratorExtension.git
synced 2026-04-22 08:08:01 +03:00
Updated Code style (markdown)
+2
-2
@@ -86,9 +86,9 @@ export const Message: string = 'Hello, World!';
|
||||
```ts
|
||||
function GetEnergy(mass: number): number
|
||||
{
|
||||
// let speedOfLight: number = 3_0000_0000; // ❌ Incorrect
|
||||
// let speedOfLight: number = 3_0000_0000; // ❌ Incorrect
|
||||
// var result: number = Math.pow(speedOfLight, 2); // ❌ Incorrect
|
||||
const speedOfLight: number = 3_0000_0000; // ✅ Correct
|
||||
const speedOfLight: number = 3_0000_0000; // ✅ Correct
|
||||
let result: number = Math.pow(speedOfLight, 2); // ✅ Correct
|
||||
|
||||
result = result * mass;
|
||||
|
||||
Reference in New Issue
Block a user