Sunday, January 28, 2018

JavaScript: Generating Random Text with Letters and Numbers

Without further ado, I typed this coding. On um, something. Here goes, a function named generate_something:

I suppose you could examine the flow in the typing above. That function above, generate_something, will generate something. It can receive an argument input, which must be an integer from 1 to "unlimited". If the input isn't an integer or it's below 1, the argument will be ignored. Anyway, default length for the generated something (output) is 6.

How to Use

What is That For?

Wull... I'm not sure, usually it is for "server side" logic, maybe. But it can always be translated to other linguic. Why that doesn't answer anything, does it?

No comments:

Post a Comment

Tell me what you think...