MemoryRefresh!

Data / Replace all     Replace all



Questions Answers 0%

Pages   0 from 16
Questions   0 from 21

Reset



<script> keywords = "php jquery".split(" ").join("+"); alert(keywords); // php+jquery </script> OR
<script> keywords = "php jquery".replace(/ /g, "+"); // global alert(keywords); // php+jquery </script> stackoverflow.com

Related Pages

Each
Object
Each break
Json decode
Split string
Global variable
Datatable
Array
Replace all


0% 100%
 
 
0 pages 16 pages
1) Which is correct when replacing all?





2) Is this correct? keywords = "aba".split("a").join("b"); // bbb








<script> keywords = "php jquery".split(" ").join("+"); alert(keywords); // php+jquery </script> OR
<script> keywords = "php jquery".replace(/ /g, "+"); // global alert(keywords); // php+jquery </script> stackoverflow.com





Programming

Php
   
Regex
   
MySQL
   
Css
   
jQuery
   
Git
   


References
n/a