Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions docs/Exercise/JavaScript_Basics/two_strings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Anagram

given two strings as parameters, check whether you can make the first string into the second string. Assume the two strings have equal length

# Example 1

String1 = 'team'
String2 = 'mate'

should return return true because you can rearrange team to make mate

# Example 2

String1 = 'angered'
String2 = 'enraged'

Returns true

# Example 3
String1 = 'evils'
String2 = 'vile'

return false since the length of two strings are not equal