Skip to content

Commit b222c1b

Browse files
Update arrayProperty.js
1 parent c05a354 commit b222c1b

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

arrayProperty.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
// class String extends String{
88

99
// }
10-
String.prototype.reverses = function(){
11-
return this.split("").reverse
12-
().join("");
13-
}
10+
String.prototype.reverse = function(){
11+
return this.split("").reverse().join("");
12+
}

0 commit comments

Comments
 (0)