Javascript
Javascript resources you might find helpful.
Sections
Posts
Binary Search Algorithm
Looking for a certain value in a sorted array is very simple as it seems.
Bubble Sort Algorithm
How to sort an array in ascending or descending order in Javascript?
How to check a phrase in a string
Checking an existence of a string in a string is very tricky sometimes. Spec...
How to deep copy objects in Javacsript
Copying objects in javascript becomes messy sometimes. Assigning the value o...
How to replace two or more spaces with a single space
var str = "class Main extends App"
How to round number between two given numbers
I was working one time and as I was solving my little problem. I need to fin...
Replace all occurences of a string in a string
Let's say we want to replace the word Hello in Hello World with the word Hi ...