We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52b5d60 commit 824faecCopy full SHA for 824faec
modules/exporting-modules/index.js
@@ -0,0 +1 @@
1
+// Import the modules exported from practiceExports.js below:
modules/exporting-modules/practiceExports.js
@@ -0,0 +1,16 @@
+function isPalindrome(str){
2
+ return str === str.split('').reverse().join('');
3
+}
4
+
5
+function evenOrOdd(num){
6
+ if (num%2===0){
7
+ return "Even";
8
+ } else {
9
+ return "Odd";
10
+ }
11
12
13
+function randomArrayElement(arr){
14
+ let index = Math.floor(Math.random()*arr.length);
15
+ return arr[index];
16
0 commit comments