function sortWords2 (word1, word2) {
   if (word1.length < word2.length) {        //? If word1 is greater than word2 
      return 1;
   } else if (word2.length < word1.length) { //? If word1 is less than word2
      return -1;
   } else {
      return 0;
   }
}
//*   2. Use an anonymous inline function
2. Use an anonymous inline function
2 . Use an anonymous inline function
function sortWords2 (word1, word2) {
   if (word1.length < word2.length) {        
      return 1;
   } else if (word2.length < word1.length) { 
      return -1;
   } else {
      return 0;
   }
}
function sortWords2 ( word1 , word2 ) { if ( word1 . length < word2 . length ) { return 1 ; } else if ( word2 . length < word1 . length ) { return - 1 ; } else { return 0 ; } }
2.
2 .
//? If word1 is greater than word2  //? If word1 is less than word2