Responsive Navigation Menu:
Parallax Scrolling:
Animated Progress Bars:
Sticky Navigation Bar:
Responsive Image Gallery:
Animated Gradient Background:
Animated Gradient Background example:
CSS Grid Layout with full code and explanation:
Responsive Navigation Bar with Flexbox
Animated Counter with JavaScript
Responsive Navigation Bar with CSS Flexbox
Responsive Image Gallery with CSS Grid
Missing DOCTYPE declaration:
Unclosed tags:
Improper nesting of tags:
Missing alt text for images:
Using deprecated tags or attributes:
Using inline styles instead of CSS:
Incorrectly formatted links:
Using non-semantic markup:
Using tables for layout:
Ignoring accessibility:
Using non-ASCII characters:
Using inline JavaScript:
Using duplicate IDs:
Not specifying character encoding:
Overusing heading tags:
Ignoring responsive design:
Forgetting to close self-closing tags:
Using too many nested elements:
Using non-standard HTML:
Not optimizing images:
Using outdated code:
Ignoring SEO best practices:
Overusing div tags:
Using too many inline styles:
Not using the correct file extensions:
Using too many different fonts:
Not using proper indentation:
Ignoring accessibility requirements:
Using invalid HTML:
Ignoring cross-browser compatibility:
With Responsive Navigation menu
Use Strict Mode:
Declare Variables Properly:
Use Descriptive Names:
Use Comments:
Use Templates Instead of Concatenation:
Use Strict Comparison:
Avoid Global Variables:
Use Object and Array Destructuring:
Use Arrow Functions:
Use Promises and Async/Await:
JavaScript Questions and Answers
What is the result of the following code?
What is the result of the following code?
Which of the following is NOT a valid way to declare a variable in JavaScript?
What is the output of the following code?
What is the result of the following code?
What is the result of the following code?
What is the result of the following code?
What is the output of the following code?
Which of the following is NOT a valid data type in JavaScript?
What is the result of the following code?
What is the result of the following code?
What is the result of the following code?
Which of the following is NOT a valid way to declare a variable in JavaScript?
What is the output of the following code?
What is the result of the following code?
What is the result of the following code?
What is the result of the following code?
What is the output of the following code?
Which of the following is NOT a valid data type in JavaScript?
What is the result of the following code?
Not using ‘try-catch-finally’ for resource management:
Not using ‘const’ for values that won’t change:
Not checking for null or undefined:
Not using ‘Array.prototype.filter()’:
Not using ‘Array.prototype.forEach()’:
Not using ‘Object.assign()’ for object cloning:
Not using ‘Array.prototype.some()’ or ‘Array.prototype.every()’:
Not using ‘Array.prototype.find()’ or ‘Array.prototype.findIndex()’:
Not using ‘Array.prototype.sort()’:
Not handling asynchronous code properly:
Write a function that takes an array of numbers and returns the sum of all the positive numbers in the array.
Write a function that takes an array of strings and returns the shortest string in the array.
Write a function that takes a string and returns a new string with all the vowels removed.
Write a function that takes an array of numbers and returns a new array with all the even numbers removed.
Exercise 1: Title case a sentence
Exercise 2: Find the largest number in an array
Exercise 3: Confirm all elements in an array are the same
Exercise 4: Count the number of vowels in a string
Exercise 1: Reverse a string
Exercise 2: Factorialize a number
Exercise 3: Check for palindrome
Exercise 4: Find the longest word
Exercise 5: Title case a sentence
Exercise 6: Return largest numbers in arrays
Exercise 7: Confirm the ending
Exercise 8: Repeat a string
Exercise 9: Truncate a string
Exercise 10: Chunky monkey
Exercise 1: Sum All Numbers in a Range
Exercise 2: Diff Two Arrays
Exercise 3: Seek and Destroy
Exercise 4: Wherefore art thou
FizzBuzz
Palindrome checker
Hangman game
Shopping cart
Typing speed test
Not declaring variables properly:
Using the wrong comparison operator:
Not using semicolons:
Not understanding scoping:
Using “var” instead of “let” or “const”:
Instead, use “let” or “const”:
Using “==” instead of “===”:
Not using curly braces in if statements:
Using “parseFloat” instead of “parseInt”:
Not handling asynchronous code properly:
Example using a promise:
Example using async/await:
Not properly scoping variables:
Example using let:
Example using var:
Reverse a String:
FizzBuzz:
Palindrome Checker:
Random Number Generator:
Capitalize the First Letter of Each Word: