About 50 results
Open links in new tab
  1. javascript - How do you reverse a string in-place? - Stack Overflow

    How do you reverse a string in-place in JavaScript when it is passed to a function with a return statement, without using built-in functions (.reverse(), .charAt() etc.)?

  2. javascript - How to reverse a string without using any built-in ...

    I want to reverse a string without using any inbuilt function, and I want it to change the original string itself but it doesn't work well. The language is Javascript.

  3. Is there a way to create a function from a string with javascript ...

    Oct 4, 2011 · 0 If you have a function expression that is in string form and you want to make it a function, then you need to include a return statement in the string you pass to new Function.

  4. javascript - Converting a string with spaces into camel case - Stack ...

    Mar 19, 2019 · How can I convert a string into camel case using javascript regex? EquipmentClass name or Equipment className or equipment class name or Equipment Class Name should all …

  5. How do I replace all occurrences of a string? - Stack Overflow

    Note: In general, extending the built-in prototypes in JavaScript is generally not recommended. I am providing as extensions on the String prototype simply for purposes of illustration, showing different …

  6. How can you encode/decode a string to Base64 in JavaScript?

    You can use btoa() and atob() to convert to and from base64 encoding. There appears to be some confusion in the comments regarding what these functions accept/return, so… btoa() accepts a …

  7. How to turn a String into a JavaScript function call?

    In javascript that uses the CommonJS spec, like node.js for instance you can do what I show below. Which is pretty handy for accessing a variable by a string even if its not defined on the window object.

  8. How do I split a string with multiple separators in JavaScript?

    Mar 16, 2009 · How do I split a string with multiple separators in JavaScript? I'm trying to split on both commas and spaces, but AFAIK JavaScript's split() function only supports one separator.

  9. JavaScript operator similar to SQL "like" - Stack Overflow

    Jul 9, 2016 · Possible Duplicate: Emulating SQL LIKE in JavaScript Is there an operator in JavaScript which is similar to the like operator in SQL? Explanations and examples are appreciated.

  10. How do I check for an empty/undefined/null string in JavaScript?

    It works on a null string, and on an empty string and it is accessible for all strings. In addition, it could be expanded to contain other JavaScript empty or whitespace characters (i.e. nonbreaking space, byte …