Implement the function findMax that takes two numbers and returns the bigger one.

This task is part of the Full-Stack JavaScript Course
If you have any issues with it, you can ask for community help below the post
Feel free to help others if you’ve already solved the task

helper.js

export const findMax = (x, y) => {
  return x;
}

solution.js

/**
 * Implement a function findMax that takes two numbers and returns the bigger one
 * */

import { findMax } from './helper.js';

console.log(findMax(2, 3));       // 3
console.log(findMax(6, 4));       // 6
console.log(findMax(-1, -5));     // -1