Skip to content

Commit d5737c9

Browse files
committed
#4 - javascript
1 parent 64bea01 commit d5737c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Roadmap/04 - CADENAS DE CARACTERES/javascript/rlores-edison.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* - Isogramas (Las letras se repiten el mismo número de veces)
1414
*/
1515

16-
// Sting length
16+
// String length
1717
let text = "ABCDEFGHIJKLLLMNOPQRSTUVWXYZ";
1818
let length = text.length;
1919
console.log("Length of the text: " + length);
@@ -140,7 +140,7 @@ let word2 = "nana";
140140

141141
let reversedWord = word1.split("").reverse().join("");
142142
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
144144
console.log(`"${word1}" is an isogram:`, word1.length === new Set(word1).size); // it has no repeated characters
145145

146146

0 commit comments

Comments
 (0)