• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
JavaScriptSource

JavaScriptSource

Search 5,000+ Free JavaScript Snippets

  • Home
  • Browse Snippets
    • Addon
    • Ajax
    • Buttons
    • Cookies
    • CSS
    • Featured
    • Forms
    • Games
    • Generators
    • Image Effects
    • Math Related
    • Miscellaneous
    • Multimedia
    • Navigation
    • Page Details
    • Passwords
    • Text Effects
    • Time & Date
    • User Details
Home / Archives for Miscellaneous

Miscellaneous

3 Ways To Find an Object by ID in a JavaScript Array

3 Ways To Find an Object by ID in a JavaScript Array

Finding an object by its ID in a JavaScript array can be a common task when working with data in your application.

Miscellaneous

5 Methods To Empty an Array in JavaScript

5 Methods To Empty an Array in JavaScript

JavaScript provides several ways to empty an array. Here are a few common methods.

Miscellaneous

How To Format Numbers as Currency Strings in JavaScript

How To Format Numbers as Currency Strings in JavaScript

JavaScript provides several ways to format numbers as currency strings.

Miscellaneous

How To Check If a Variable is a String in JavaScript

How To Check If a Variable is a String in JavaScript

JavaScript provides several ways to check if a variable is a string.

Miscellaneous

How To Get All Unique Values and Remove Duplicates in a JavaScript Array

How To Get All Unique Values and Remove Duplicates in a JavaScript Array

To get all unique values and remove duplicates in a JavaScript array, you can use the Set() constructor to get unique values and the filter() method to remove duplicates.

Miscellaneous

How To Add A Table Row In JavaScript

How To Add A Table Row In JavaScript

Adding a table row in JavaScript can be done using the DOM (Document Object Model) API.

Miscellaneous

4 Ways To Refresh A Page In JavaScript

4 Ways To Refresh A Page In JavaScript

There are several ways to refresh a page using JavaScript, and in this article, we will cover the most common methods.

Miscellaneous

How To Append An Object To An Array In JavaScript

How To Append An Object To An Array In JavaScript

JavaScript provides several ways to add an object to an array.

Miscellaneous

How To Check If An Object Property Is Undefined In JavaScript

How To Check If An Object Property Is Undefined In JavaScript

JavaScript provides several ways to check if an object property is undefined.

Miscellaneous

How To Convert a String to Boolean in JavaScript

How To Convert a String to Boolean in JavaScript

JavaScript has several ways to convert a string to a boolean.

Basics, Miscellaneous

  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Interim pages omitted …
  • Go to page 16
  • Go to Next Page »

Primary Sidebar

Popular Posts

Story Generator

IP Grabber – get a users IP address with JavaScript

Simple Calendar

Remove Ads

Astrological Calculator

Copyright © 2025 JavaScriptSource.com

  • About
  • Privacy Policy
  • FAQ
  • Jobs For Developers