Replace all spaces in a string
Replace all commas in a string
Replace all occurrences of specific word in a stringBelow example will replace all occurrences of the word 'and'
Example source code
Syntax: window.location.href = "url here";
Syntax : var objInterval = setInterval(code, delay); where code is the set of action or a function, and delay is the time interval in milliseconds. clearInterval(objInterval);where objInterval is the interval id.
"setTimeout" function will take 2 parameter , the first one is function and the second parameter is time in milliseconds.
Syntax : setTimeout(function, timeout); where the function can be write there it self, are can write separately and can pass the function name as parameter.
Method 1 : Writing javasript method as a parmeter
Method 2 : Writing javasript method separately and passing method name as a parmeter