Exercise
How do I make an exercise?
What is a exercise? How do you make a exercise? This script and codes were developed by Maria on 14 October 2022, Friday.
Exercise - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Exercise</title>
</head>
<body> <script src="js/index.js"></script>
</body>
</html>
Exercise - Script Codes JS Codes
/*var x = function(num){ var fib = []; var a = 0; var b = 1; var c = 1; for(var i = 2; i <= num; ++i) { c = a+b; a = b; b = c; fib.push(c); } return c;
}
console.log(x(10));
//recursive
var rec = function(num){ var fib = []; if(num<=2){ return 1; } var u = rec(num-1)+rec(num-2) fib.push(u); return fib;
}
console.log(rec(10));*/
//palndrome
var pal = ['level', 'abc'];
function findPal(w){ var p = w.split("").reverse().join(""); console.log(p); if (p == w){ return w; } }
var z = pal.filter(findPal);
console.log(z);
Developer | Maria |
Username | tmaria |
Uploaded | October 14, 2022 |
Rating | 3 |
Size | 1,580 Kb |
Views | 14,168 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Pyramid | 1,409 Kb |
ArrayPractice | 1,673 Kb |
JSON Practice | 2,959 Kb |
Simple Username and Password Check in JS | 2,686 Kb |
Stack | 1,571 Kb |
Count occurances | 1,648 Kb |
Fibonacci | 1,923 Kb |
A Pen by Maria | 7,159 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Basecamp 3 Document | Lachlanjc | 3,811 Kb |
BabyStore | Pablo-Ai | 3,807 Kb |
CSS3 Form | Tusharbandal | 1,836 Kb |
CSS Link Zoom On Click | Bryce | 1,960 Kb |
Elephants Full screen site | Orrinward | 3,981 Kb |
Animated skewed panes | NyX | 4,462 Kb |
Commuter Line Tokyu 8500 | Pedox | 7,031 Kb |
Tab panels | Accessibility | 0 Kb |
Filtering with shuffle.js | Deyand | 2,712 Kb |
Hamburger Menu Animation | Salmanraza | 2,580 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!