The Archive

Every CodeShot challenge, ever. Practice, learn, and fill the gaps.

32 questions
No questions match your search.
May 06 JAVASCRIPT
Spot the bug: This should remove duplicates from an array.
Mid-Level
May 05 JAVASCRIPT
Spot the bug: This should check if the user is an adult.
Junior
May 04 JAVASCRIPT
Spot the bug: This async function should fetch and return data.
Senior
May 03 JAVASCRIPT
Spot the bug: This should only run the callback once after 1 second.
Mid-Level
May 02 JAVASCRIPT
Spot the bug: This should double every number in the array.
Junior
May 01 JAVASCRIPT
What does this output?
Junior
Apr 30 JAVASCRIPT
What gets logged?
Senior
Apr 29 JAVASCRIPT
What does this print?
Mid-Level
Apr 28 JAVASCRIPT
What is the output?
Junior
Apr 27 JAVASCRIPT
What gets logged?
Senior
Apr 26 JAVASCRIPT
What does this output?
Mid-Level
Apr 25 JAVASCRIPT
What does this print?
Junior
Apr 24 JAVASCRIPT
What does g.next().value print twice?
Senior
Apr 23 JAVASCRIPT
How do you get the number of entries in a Map?
Mid-Level
Apr 22 JAVASCRIPT
What does this evaluate to?
Senior
Apr 21 JAVASCRIPT
What is arr.flat().length?
Mid-Level
Apr 20 JAVASCRIPT
What gets logged?
Senior
Apr 19 JAVASCRIPT
What does this output?
Mid-Level
Apr 18 JAVASCRIPT
What is the output?
Junior
Apr 17 JAVASCRIPT
What is the output?
Mid-Level
Apr 16 JAVASCRIPT
What is the output?
Mid-Level
Apr 15 JAVASCRIPT
What gets logged?
Senior
Apr 14 JAVASCRIPT
Which of these is truthy in JavaScript?
Junior
Apr 13 JAVASCRIPT
What is the output of both lines?
Mid-Level
Apr 12 JAVASCRIPT
What is the type of NaN in JavaScript?
Senior
Apr 11 JAVASCRIPT
What is the output?
Mid-Level
Apr 10 JAVASCRIPT
What does this print?
Senior
Apr 09 JAVASCRIPT
What gets logged?
Mid-Level
Apr 08 JAVASCRIPT
What does this output?
Junior
Apr 07 JAVASCRIPT
What gets logged to the console?
Senior
Apr 06 JAVASCRIPT
What does this output?
Mid-Level
Apr 05 JAVASCRIPT
What does this output?
Mid-Level

Master JavaScript, Python, SQL, and CSS

The CodeShot Archive is a curated collection of real-world interview questions and logic puzzles. Instead of scrolling through endless theory, you can jump straight into the code that matters.

JavaScript Fundamentals

Deep dive into closures, hoisting, the event loop, and tricky coercion bugs. Our JavaScript archive covers everything from ES6+ features to legacy browser quirks.

Python Logic

Practice list comprehensions, decorators, dunder methods, and Pythonic patterns. Perfect for data scientists and backend engineers alike.

SQL Mastery

Master complex JOINs, window functions, and aggregation logic. Solve the kind of data puzzles you'll actually face in technical interviews.

Modern CSS

Test your knowledge of Flexbox, Grid, specificity, and modern CSS properties. Build a visual intuition for how layouts really work.

Why Use the Archive?

  • Interview Readiness: Many of these questions are adapted from real technical interviews at top tech companies.
  • Active Recall: Instead of reading, you're solving. This is the most effective way to retain programming knowledge.
  • Detailed Explanations: Every archived question comes with a breakdown of why the answer is correct.