Skip to content

Commit adfd48c

Browse files
fix question - Write a JavaScript program to reverse a string
1 parent d91bac0 commit adfd48c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,12 @@ console.log([1, 2, 3, 4, 5]);
371371
<p>
372372
</details>
373373

374-
### Write a JavaScript program to reverse a string
374+
---
375375

376+
**[⬆ Back to Top](#table-of-contents)**
377+
### Write a JavaScript program to reverse a string
378+
<details><summary><b>Solution:</b></summary>
379+
<p>
376380
```javascript
377381
function reverse(str) {
378382
return str.split('').reverse().join('');

0 commit comments

Comments
 (0)