Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Create a menu that slides in from the left side when a button is clicked.

Medium

Problem Statement

Create a menu that slides in from the left side when a button is clicked.

Sample Output

Clicking the button shows the sliding menu.

Limits

Time: 2s · Memory: 256 MB

Code Editor

Try your code in this preview. Submit marks it done.

<!DOCTYPE html> <html> <head> <style> /* Add CSS here to style the sliding menu */ </style> </head> <body> <button id="toggleMenu">☰ Menu</button> <div class="menu">Menu Content</div> </body> </html>

Document

To view the HTML changes, please type the code within the editor