MemoryRefresh!

Replace all



Questions Answers 0%

Pages   0 from 18
Questions   0 from 23

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>
https://stackoverflow.com
Questions

Related pages

Replace all !
Jquery basics console log !
Jquery basics operations !


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





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




Last Review: n/a   Passed: n/a   Reviews: n/a   Next Review: n/a  



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



More from JQuery

Window
Attributes
Data
Effects
Element
Basics
Ajax
Form
Uncategorized


More from Programming

Php
jQuery




Powered by minte9.com