GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Modul 5 von 35 · Text

#05

welligton costa

// A sintaxe para esta função é válida, mas há um erro, localize-o e corrija-o.

 

 

function trimWord(word) {

return wordtrim();

}

function getWordLength(word) {

return "word".length()

}

function multiply(a, b, c) {

a * b * c;

return;

}

/* ======= TESTS - DO NOT MODIFY ===== */

function test(test_name, expr) {

let status;

if (expr) {

status = "PASSED"

} else {

status = "FAILED"

}

console.log(`${test_name}: ${status}`)

}

test("fixed trimWord function", trimWord(" CodeYourFuture ") === "CodeYourFuture")

test("fixed wordLength function", getWordLength("A wild sentence appeared!") === 25)

test("fixed multiply function", multiply(2,3,6) === 36)

Anleitung

Um im Kurs weiterzukommen, sende einen Versuch dieses Quiz ab. Du kannst ihn nach der letzten Frage absenden.

Zum gewählten Modul

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck