File tree 1 file changed +2
-2
lines changed
Roadmap/04 - CADENAS DE CARACTERES/javascript
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 13
13
* - Isogramas (Las letras se repiten el mismo número de veces)
14
14
*/
15
15
16
- // Sting length
16
+ // String length
17
17
let text = "ABCDEFGHIJKLLLMNOPQRSTUVWXYZ" ;
18
18
let length = text . length ;
19
19
console . log ( "Length of the text: " + length ) ;
@@ -140,7 +140,7 @@ let word2 = "nana";
140
140
141
141
let reversedWord = word1 . split ( "" ) . reverse ( ) . join ( "" ) ;
142
142
console . 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
144
144
console . log ( `"${ word1 } " is an isogram:` , word1 . length === new Set ( word1 ) . size ) ; // it has no repeated characters
145
145
146
146
You can’t perform that action at this time.
0 commit comments