Skip to content
  • Home
  • ES6
  • Advanced
    • JavaScript Array Methods
    • JavaScript String Methods
    • Regular Expressions
    • ES Next
  • JS BOM
  • JS DOM
  • Web API
  • React
  • React Native
  • Node.js
  • TypeScript

Home » String

String

How to Replace All Occurrences of a Substring in a String

In this tutorial, you’ll learn how to replace all occurrences of a string in JavaScript.

How to Check if Two Strings are Equal in JavaScript

In this tutorial, you’ll learn how to check if two strings are equal in JavaScript.

Top 3 Practical Ways to Perform Javascript String Concatenation

Show you various options that you can use to concatenate strings in JavaScript.

Getting Started

  • What is JavaScript
  • Install a JavaScript Code Editor
  • Meet the Console Tab of Devtools
  • JavaScript Hello World

JavaScript Fundamentals

  • Syntax
  • Variables
  • Data Types
  • Number
  • Numeric Separator
  • Boolean
  • String
  • Object
  • Primitive vs. Reference Values
  • Array

JavaScript Operators

  • Arithmetic Operators
  • Remainder Operator
  • Assignment Operators
  • Unary Operators
  • Comparison Operators
  • Logical Operators

Control Flow

  • if
  • if else
  • if else if
  • Ternary Operator (?:)
  • switch case
  • while
  • do while
  • for
  • break
  • continue
  • Comma Operator

JavaScript Functions

  • Functions
  • Functions are First-Class Citizens
  • Anonymous Functions
  • Understanding Pass-By-Value in JavaScript
  • Recursive Functions
  • Default Parameters

JavaScript Objects

  • Object Methods
  • Constructor Functions
  • Prototype
  • Constructor/Prototype Pattern
  • Prototypal Inheritance
  • JavaScript this
  • globalThis
  • Object Properties
  • for…in Loop
  • Enumerable Properties
  • Own Properties
  • Factory Functions
  • Object Destructuring
  • Optional Chaining Operator
  • Object Literal Syntax Extensions

Classes

  • Class
  • Getters & Setters
  • Class Expressions
  • Computed Properties
  • Inheritance
  • new.target
  • Static Methods
  • Static Properties
  • Private Fields
  • Private Methods
  • instanceof Operator

Advanced Functions

  • Function Type
  • The call() Method
  • The apply() method
  • The bind() Method
  • Closures
  • Immediately Invoked Function Expression (IIFE)
  • Returning Multiple Values
  • Arrow Functions
  • Arrow Functions: Do & Don’t
  • Rest Parameters
  • Callback

Promises & Async/Await

  • Promises
  • Promise Chaining
  • Promise.all()
  • Promise.race()
  • Promise.any()
  • Promise.allSettled()
  • Promise.prototype.finally()
  • Promise Error Handling
  • async/await
  • Promise.withResolvers()

JavaScript Modules

  • Modules
  • Dynamic Import
  • Top-level Await Modules

Javascript Error Handling

  • try…catch
  • try…catch…finally
  • Throw an Exception
  • Optional catch Binding

JavaScript Runtime

  • Execution Context
  • Call Stack
  • Event Loop
  • Hoisting
  • Variable Scopes

Primitive Wrapper Types

  • Primitive Wrapper Types
  • Boolean
  • Number
  • BigInt
  • String

More JavaScript Operators

  • Falsy
  • Nullish Coalescing Operator
  • Logical Assignment Operators
  • Exponentiation Operator

About JavaScript Tutorial

The JavaScript Tutorial website helps you learn JavaScript programming from scratch quickly and effectively.

References

  • Array Methods
  • String Methods
  • Regular Expressions
  • JavaScript Snippets

Site Links

  • Donation ❤️
  • About
  • Contact
  • Privacy Policy

Copyright © 2009 - Present by JavaScript Tutorial Website. All Right Reserved.