0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
No active XP Potion
Accept a Quest
Login to submit answers
As you might have guessed, JavaScript supports functions via the function
keyword.
Even JavaScript isn't crazy enough to not support functions.
// function declaration
function getSum(a, b) {
return a + b;
}
// function call
const result = getSum(60, 9);
console.log(result);
// 69
We often need to manipulate strings in Textio. For example, adding some personalization by using a customer's name within a template. The concat
function should take two strings and combine them together.
hello
+ world
= helloworld
Fix the function signature of concat
to reflect its behavior.
Focus Editor
Alt+Shift+]
Login to Submit
Login to Run
Login to view solution