Virtual Curiosities

  • Websites
    • Search Engines
    • Social Media
  • Applications
    • For Digital Art
  • Tutorials & Tips
    • The Basics
    • Windows
    • GIMP
    • Krita
    • Inkscape
    • DaVinci Resolve
    • OBS Studio
    • WordPress (PHP Programming)
  • Reference
    • Hardware (Concepts)
    • Names of Computer Parts
    • Software (Concepts)
    • File Extensions
    • User Interfaces
    • Images & Image-Editing (Concepts)
    • Video & Video-Editing (Concepts)
    • Games (Terminology)
    • Internet (Concepts)
Web Development

Folder: Javascript

  • How to Get a Random Item from an Array in Javascript

    Tutorial
    For an array such as ['red', 'green', 'blue'], learn the algorithm to get a random item in Javascript and other programming languages.
  • How to Import Typescript Modules with .js Extension in Jest

    Tutorial
    How to make import "./foo.js" mean the same thing as import "./foo" in Jest.
  • How to Mock Global Variables in Jest

    Tutorial
    How to mock global modules like "browser" and "chrome" in Jest that don't use the "import" keyword.
  • Why Hashtags Can't Have Spaces

    Explanation
    Because the program that figures out where the hashtag starts and ends uses the hash sign (#) to figure out where the hashtag starts, and uses the space character ( ) to figure out where the hashtag ends.
  • How to Make Background Music Continue Playing after Clicking a Link using Javascript

    Tutorial
    Using currentTime, sessionStorage, and beforeunload to keep an <audio> playing after page load.

About the Site

  • Sitemap
  • Privacy Policy

Follow

Main Content © Virtual Curiosities 2023–2024.
Some Resources © Their Respective Authors.
Made with WordPress.