// duplica el valor de entrada y lo devuelveTambién puede pasar más de un argumento a las funciones de flecha.
const doubler = (item) => item * 2;
myConcat que agrega el contenido de arr2 a arr1 para que la función use la sintaxis de la función de flecha. var .
testString: 'getUserInput => assert(!getUserInput("index").match(/var/g), "User did replace var keyword.");'
- text: myConcat debe ser una variable constante (usando const ).
testString: 'getUserInput => assert(getUserInput("index").match(/const\s+myConcat/g), "myConcat should be a constant variable (by using const).");'
- text: myConcat debería ser una función
testString: 'assert(typeof myConcat === "function", "myConcat should be a function");'
- text: myConcat() devuelve la array correcta
testString: 'assert(() => { const a = myConcat([1], [2]); return a[0] == 1 && a[1] == 2; }, "myConcat() returns the correct array");'
- text: function palabra clave de la function no se utilizó.
testString: 'getUserInput => assert(!getUserInput("index").match(/function/g), "function keyword was not used.");'
```