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 - 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 …

  3. 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 …

  4. is there any builtin javascript string hash function in newest browsers ...

    This may be useful when you need a simple reversible encryption with "builtin" support. When I need simple client side hashing without external libraries I use the browsers' built in atob() and btoa() …

  5. Passing string parameter in JavaScript function - Stack Overflow

    Aug 12, 2015 · In your JavaScript, grab the button using its ID, assign the function to the button's click event, and use the function to display the button's data-name attribute.

  6. JavaScript equivalent to printf/String.Format - Stack Overflow

    Mar 4, 2009 · I'm looking for a good JavaScript equivalent of the C/PHP printf() or for C#/Java programmers, String.Format() (IFormatProvider for .NET). My basic requirement is a thousand …

  7. 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 …

  8. How do I make the first letter of a string uppercase in JavaScript ...

    Jun 22, 2009 · How do I make the first character of a string uppercase if it's a letter, but not change the case of any of the other letters? For example: "this is a test" → "This is a test" ...

  9. 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.

  10. Pass a string parameter in an onclick function - Stack Overflow

    A couple of concerns for me with respect to using string escape in onClick and as the number of arguments grow, it will become cumbersome to maintain. The following approach will have a one hop …