Utmaning: 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.
12345let 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}`)
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 7
Fråga AI
Fråga AI
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
Utmaning: 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.
12345let 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}`)
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 7