Skip to content

Commit 3bd5b5f

Browse files
authored
Merge pull request #11 from KidiIT/main
Shuffle-array-using-sort-method-step2
2 parents 4e96cec + 4b442fe commit 3bd5b5f

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
Before getting us to what we need to know know, I want to let y'all know that this program might be one of the shortest code you've seen so far been used to shuffle an array with javascript.
66
My algorithm are as follows:
77

8+
89
step1: create a veriable and call it name or what you wish.
910

11+
1012
step2: create an array container that will hold your veriables.
1113

12-
step3: then use sort method to sort the array in the container using an alert()
14+
step3: then use sort method to sort the array in the container using an alert().
1315

1416
step4: after which, a simple function was introduced to be able to shuffle the array with a Math function merged simultaneously without any conflict. just like a nested function,writing a function inside of another funtion which can be called a method in javascript.
1517

0 commit comments

Comments
 (0)