Exercise

Developer
Size
1,580 Kb
Views
14,168

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 Previews

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);
Exercise - Script Codes
Exercise - Script Codes
Home Page Home
Developer Maria
Username tmaria
Uploaded October 14, 2022
Rating 3
Size 1,580 Kb
Views 14,168
Do you need developer help for Exercise?

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!

Maria (tmaria) Script Codes
Create amazing love letters with AI!

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!