About 50 results
Open links in new tab
  1. 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.

  2. 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.)?

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

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

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

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

  7. Convert JavaScript String to be all lowercase - Stack Overflow

    Also note that the toLowerCase and toLocaleLowerCase functions are implemented to work generically on any value type. Therefore you can invoke these functions even on non- String objects. Doing so …

  8. How to execute a JavaScript function when I have its name as a string

    Dec 11, 2008 · I have the name of a function in JavaScript as a string. How do I convert that into a function pointer so I can call it later? Depending on the circumstances, I may need to pass various …

  9. 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() …

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