File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Roadmap/04 - CADENAS DE CARACTERES/javascript Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1313 * - Isogramas (Las letras se repiten el mismo número de veces)
1414 */
1515
16- // Sting length
16+ // String length
1717let text = "ABCDEFGHIJKLLLMNOPQRSTUVWXYZ" ;
1818let length = text . length ;
1919console . log ( "Length of the text: " + length ) ;
@@ -140,7 +140,7 @@ let word2 = "nana";
140140
141141let reversedWord = word1 . split ( "" ) . reverse ( ) . join ( "" ) ;
142142console . log ( `"${ word1 } " is a palindrome:` , word1 === reversedWord ) ; // you can read the word in reverse
143- console . log ( `"${ word2 } " is an anagram of "${ word1 } ":` , word2 === reversedWord ) ; // the letters of a word cab form another word
143+ console . log ( `"${ word2 } " is an anagram of "${ word1 } ":` , word2 === reversedWord ) ; // the letters of a word can form another word
144144console . log ( `"${ word1 } " is an isogram:` , word1 . length === new Set ( word1 ) . size ) ; // it has no repeated characters
145145
146146
You can’t perform that action at this time.
0 commit comments