JavaScript Coding Exercises
JavaScript Coding Exercises JavaScript coding exercise that involves working with arrays and string manipulation: Exercise: Write a function that takes in an array of words and returns a new array containing only the words that have all their letters in alphabetical order. Example: const words = [‘hello’, ‘world’, ‘abcedf’, ‘goodbye’]; console.log(wordsInOrder(words)); // [‘abcedf’] Explanation: To … Read more