forked from opensource-society/CodeClip
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjslogics.html
More file actions
80 lines (73 loc) · 2.17 KB
/
jslogics.html
File metadata and controls
80 lines (73 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JavaScript Logic Challenges</title>
<style>
body {
font-family: 'Segoe UI', sans-serif;
background-color: #f8f9fc;
margin: 0;
padding: 2rem;
}
h1 {
color: #2d3748;
margin-bottom: 0.5rem;
}
p.description {
color: #4a5568;
margin-bottom: 2rem;
}
.challenge-list {
display: grid;
gap: 1.2rem;
}
.challenge {
background: white;
padding: 1rem 1.5rem;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
transition: 0.3s ease;
}
.challenge:hover {
transform: translateY(-3px);
box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
.challenge-title {
font-weight: 600;
color: #d69e2e;
margin-bottom: 0.4rem;
}
.challenge-desc {
color: #718096;
font-size: 0.95rem;
}
</style>
</head>
<body>
<h1>JavaScript Logic Challenges</h1>
<p class="description">Improve your problem-solving and core JavaScript skills with these logic-based challenges:</p>
<div class="challenge-list">
<div class="challenge">
<div class="challenge-title">Palindrome Checker</div>
<div class="challenge-desc">Write a function to check if a string reads the same backward as forward.</div>
</div>
<div class="challenge">
<div class="challenge-title">FizzBuzz</div>
<div class="challenge-desc">Classic logic problem to print numbers with special rules for multiples of 3 and 5.</div>
</div>
<div class="challenge">
<div class="challenge-title">Anagram Validator</div>
<div class="challenge-desc">Create a function that checks whether two strings are anagrams.</div>
</div>
<div class="challenge">
<div class="challenge-title">Factorial Calculator</div>
<div class="challenge-desc">Write a function that calculates the factorial of a number using recursion.</div>
</div>
<div class="challenge">
<div class="challenge-title">Array Flattener</div>
<div class="challenge-desc">Flatten a deeply nested array using recursion or iterative logic.</div>
</div>
</div>
</body>
</html>