Open links in new tab
    • The Knowledge Academy
      www.theknowledgeacademy.com › JavaScript
      About our ads

      JavaScript Training - Instructor Led & Self Paced

      SponsoredInhouse & Group Discounts, Corporate & Public Sector Bespoke Courses, Book by Card/PO. Become a JavaScript Expert with Specially Designed JavaScript Training. View More Offers!
  1. Designed by

    First appeared

    14 Cool and Unique Projects to do With JavaScript - strapi.io

    Explore 14 unique JavaScript projects from interactive UIs, SPAs, to mobile apps. Discover the versatility of JavaScript in modern web development.

    Strapi
    Top 95+ Javascript Projects For 2025 - GeeksforGeeks

    From real-time updates to interactive maps and animations, JavaScript brings web pages to life. Here, we provided 95+ JavaScript projects with source code and …

    GeeksForGeeks
  1. JavaScript is known for its quirks and unexpected behaviors, which can sometimes be amusing. Here are some examples of funny and tricky JavaScript code snippets that highlight these peculiarities:

    1. [] == ![]

    console.log([] == ![]); // true
    Copied!

    Explanation: The abstract equality operator converts both sides to numbers to compare them. Both sides become the number 0 for different reasons. Arrays are truthy, so ![] becomes false, which is coerced to 0. An empty array is coerced to 0 directly.

    2. true == []

    console.log(true == []); // false
    console.log(true == ![]); // false
    Copied!

    Explanation: true is not equal to an empty array, and true is not equal to the negation of an empty array. This is due to the type coercion rules in JavaScript.

    3. baNaNa

    console.log("b" + "a" + + "a" + "a"); // "baNaNa"
    Copied!

    Explanation: The expression is evaluated as "b" + "a" + (+"a") + "a". The unary plus operator attempts to convert "a" to a number, resulting in NaN, so the final string is "baNaNa".

    4. NaN === NaN

    Feedback
  2. 14 Cool and Unique Projects to do With JavaScript

    Mar 13, 2025 · Explore 14 unique JavaScript projects from interactive UIs, SPAs, to mobile apps. Discover the versatility of JavaScript in modern web development.

  3. Top 95+ Javascript Projects For 2025 - GeeksforGeeks

    Jul 29, 2025 · From real-time updates to interactive maps and animations, JavaScript brings web pages to life. Here, we provided 95+ JavaScript projects with source code and ideas to provide hands-on …

  4. People also ask