Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Utmaning: Korrigering av Kodsyntax | TypeScript-Grunder
Introduktion till TypeScript

bookUtmaning: Korrigering av Kodsyntax

Denna kod innehåller några syntaxfel. Din uppgift är att identifiera felens positioner och kommentera ut dem för att få koden att köras korrekt.

12345
let one : number = 5; let two : string = one ** 4; let result = two - one; console.log('code has been executed succesfully') console.log(`the result is ${result}`)
copy

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 7

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

Suggested prompts:

Can you explain why those specific lines were commented out?

What would be the correct way to fix the type errors instead of commenting out the code?

Can you show me what the output of the corrected code would be?

Awesome!

Completion rate improved to 2.94

bookUtmaning: Korrigering av Kodsyntax

Svep för att visa menyn

Denna kod innehåller några syntaxfel. Din uppgift är att identifiera felens positioner och kommentera ut dem för att få koden att köras korrekt.

12345
let one : number = 5; let two : string = one ** 4; let result = two - one; console.log('code has been executed succesfully') console.log(`the result is ${result}`)
copy

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 7
some-alt