About 346,000 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. Simple (non-secure) hash function for JavaScript? [duplicate]

    May 25, 2011 · Possible Duplicate: Generate a Hash from string in Javascript/jQuery Can anyone suggest a simple (i.e. tens of lines of code, not hundreds of lines) hash function written in (browser …

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

  5. Given a string describing a Javascript function, convert it to a ...

    May 19, 2017 · Given a string describing a Javascript function, convert it to a Javascript function Asked 15 years, 8 months ago Modified 2 years ago Viewed 105k times

  6. Trim string in JavaScript - Stack Overflow

    Jan 31, 2009 · 166 Although there are a bunch of correct answers above, it should be noted that the String object in JavaScript has a native .trim() method as of . Thus ideally any attempt to prototype …

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

  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. Convert Javascript Object (incl. functions) to String

    Mar 10, 2011 · The short answer is that you cannot convert arbitrary JavaScript functions to strings. Period. Some runtimes are kind enough to give you the string serialization of functions you defined …

  10. javascript - How to convert a string to Pascal case? - Stack Overflow

    I'd like to know how I can convert a string into Pascal case (aka upper camel case) in JavaScript. Conversion Examples: double-barrel = DoubleBarrel DOUBLE-BARREL = DoubleBarrel DoUbLE …