Questions
createSamples
should be exported from the file helper.js
.
which is already done.
createSamples
should be a function.
this is also done already
Function createSamples
should return the properly formed string.
But i can't get this one, what is the solution pls??
Answers
helper.js
folder
const toLowerCase = (s) => {
return s.toLowerCase();
}
const toUpperCase = (s) => {
return s.toUpperCase();
}
export const createSamples = (s) => {
return s;
}
Did i have to export const
toLowerCase
and toUpperCase
from helper.js
or what is the solution pls?
solution.js
folder
import { createSamples } from './helper.js';
console.log(createSamples('binGO')); // bingoBINGO
console.log(createSamples('R2D2')); // r2d2R2D2
Help me out pls