The Longer Word explainer

Aim of the puzzle: Use specific instructions to complete a function.
Walk through of solution: This puzzle is the 1st in a series of lessons that will teach you how to break down word problems and real-world challenges and solve them with code.

For this puzzle, you will be getting specific instructions on how to write a function. In a future puzzle, you will be revisit this function and use it to solve a word problem, without being given specific instructions.

To complete this puzzle, complete the longer() function so that it takes 2 strings and returns whichever string is longer.
Sample code solution:
There are multiple ways to solve the puzzle.

function longer(a, b) {
    if (a.length > b.length) {
        return a;
    } else {
        return b;
    }
}
console.log(longer('signify','significant'));

Another Solution:

function longer(a, b) {
    return a.length > b.length ? a : b;
}
console.log(longer('signify','significant'));

Javascript Concepts: Functions, .length, Strings