GoConqr has a new look! Let us know what you think.

Module 4 of 35 · Text

#04

welligton costa

// Existem erros de sintaxe neste código - você pode corrigi-lo para passar nos testes?

 

 

function addNumbers(a b c) {

return a + b + c;

}

function introduceMe(name, age)

return "Hello, my name is " + name "and I am " age + "years old";

function getRemainder(a, b) {

remainder = a %% b;

// Use string interpolation here

return "The remainder is %{remainder}"

}

/* ======= 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 addNumbers function - case 1", addNumbers(3,4,6) === 13)

test("fixed introduceMe function", introduceMe("Sonjide",27) === "Hello, my name is Sonjide and I am 27 years old")

test("fixed getRemainder function", getRemainder(23,5) === "The remainder is 3")

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?