Given a string value word, use a conditional statement to set the lastWord variable to:
the upper-cased string stored in word if the word starts with the letter m and has a length of 10.
the unmodified string stored in word if it is any other length or does not start with a m.
My example below:
let word = 'med';
// let word = 'bedazzling';
// let word = 'piza';
// let word = 'pizzicatos';
// let word = 'mizzenmast';
// let word = 'motivation';
let lastWord;
// YOUR CODE
if(word[0]--'m' && word.length --10){
console.log(lastWord = word.toUpperCase());
}
else {
lastWord = word;
}
// DO NOT EDIT BELOW
module.exports = {word, lastWord};