Skip to content

Commit 67b0968

Browse files
committed
#4 - JavaScript declaración de ejercicio extra palindrome, anagrama e isograma
1 parent 6895738 commit 67b0968

File tree

1 file changed

+37
-0
lines changed
  • Roadmap/04 - CADENAS DE CARACTERES/javascript

1 file changed

+37
-0
lines changed

Roadmap/04 - CADENAS DE CARACTERES/javascript/DobleDJ.js

+37
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,40 @@ for (let index = 0; index < message.length; index++) {
100100
- [] Anagramas
101101
- [] Isogramas
102102
*/
103+
104+
/**
105+
* Determine if two words are palindromes, anagram or isogram
106+
* @param {string} firstWord Any string word
107+
* @param {string} secondWord Any string word
108+
* @returns Returns a boolean response true or false
109+
*/
110+
function textAnalizer(firstWord, secondWord) {
111+
//TODO
112+
const resultPalindrome = palindromeTester(firstWord, secondWord)
113+
const resultAnagram = anagramaTester(firstWord, secondWord)
114+
const resultIsogram = isogramaTester(firstWord, secondWord)
115+
}
116+
117+
/**
118+
* Determine if two words are palindromes
119+
* @param {string} firstWord Any string word
120+
* @param {string} secondWord Any string word
121+
* @returns Returns a boolean response true or false
122+
*/
123+
const palindromeTester = (firstWord, secondWord) => {}
124+
125+
/**
126+
* Determine if two words are anagram
127+
* @param {string} firstWord Any string word
128+
* @param {string} secondWord Any string word
129+
* @returns Returns a boolean response true or false
130+
*/
131+
const anagramaTester = (firstWord, secondWord) => {}
132+
133+
/**
134+
* Determine if two words are isogram
135+
* @param {string} firstWord Any string word
136+
* @param {string} secondWord Any string word
137+
* @returns Returns a boolean response true or false
138+
*/
139+
const isogramaTester = (firstWord, secondWord) => {}

0 commit comments

Comments
 (0)