0
Callbacks (kbin.social)
submitted 7 months ago by [email protected] to c/[email protected]

Callbacks

We can achieve asynchronous programming in JavaScript if we use the callbacks. A callback is a function that is passed as an argument to another function. The idea of the callback function is ‘I will call you back later’. You should know that the functions in JavaScript are executed in the sequence they are called, not in the sequence they are defined in. Okay, without confusing you, I will start from the beginning, why sequence control is so important in JavaScript. The sequence of control allows us to control the sequence when a function needs to be executed. For example, let us say that we want to create a function that will do some basic arithmetic operation like the sum of two integer numbers. After the function returns the result, we want to call another function to display the result to the user. So now we have two functions, one mainly for calculation, and the other is to display the user the result. Therefore we know their sequence of execution. Of course, you cannot start showing the results without first calling the calculation function. Here is the entire example: https://www.chat-to.dev/post?id=13

#programming

-3
submitted 7 months ago by [email protected] to c/[email protected]

Validation of javascript forms - name, password, password retype validation and Number Validation

It is critical to check the user-submitted form since it may include incor- rect information. As a result, validation is required to authenticate the user. Because JavaScript allows form validation on the client side, data processing is faster than server-side validation.15 JavaScript form validation is preferred by the majority of web developers. We can validate name, password, email, date, cell numbers, and other data using JavaScript. https://chat-to.dev/post?id=12 #javascript #web #programmer

[-] [email protected] -4 points 7 months ago

Is fantastic

7
submitted 7 months ago by [email protected] to c/[email protected]

Join chat rooms and explore programming content on Chat-to.dev.

1
submitted 7 months ago by [email protected] to c/[email protected]

use any fonts you like on your web pages thanks to this recipe.

Although web browsers come with a reasonable range of default fonts, they don’t always provide the look you need for a particular web site. In such cases, you usually must resort to calling up a graphic editor and creating logos or headlines there. However, with this recipe all you have to do is upload the TrueType fonts you wish to use to your web site and you can then display text in these fonts by having the GD library convert it on the fly to GIF images.
https://chat-to.dev/post?id=9 #php #backend #programming

1
submitted 7 months ago by [email protected] to c/[email protected]

When accepting user input for redisplay, and particularly if it will be inserted into a database, it’s important that you sanitize the input to remove any malicious attempts at hijacking your server, or otherwise injecting unwanted MySQL commands, HTML, or JavaScript. https://chat-to.dev/post?id=6

#programming

1
submitted 7 months ago by [email protected] to c/[email protected]

Join chat rooms and explore programming content on Chat-to.dev.

-1
submitted 8 months ago by [email protected] to c/[email protected]

which 5 websites have you used and would you like to see them back?

#webdev

1
submitted 8 months ago by [email protected] to c/[email protected]

help me evaluate please. how much should i pay for a blog like this https://playstationcouch.com ? but focused on economics

#webdev

2
submitted 8 months ago by [email protected] to c/[email protected]

five alternatives to reddit, easy to use. does anyone know them?

#webdev

0
submitted 8 months ago by [email protected] to c/[email protected]

tips, tricks, magic and lots of excitement you'll find here in this very personal look at such topics

2
Playstation Couch (playstationcouch.com)
submitted 8 months ago by [email protected] to c/[email protected]

Welcome to PlayStation Couch, your ultimate destination for all things video games. Explore the latest trends, advanced techniques, and valuable tips to enhance your gaming skills and maximize your gaming experience.

2
submitted 8 months ago by [email protected] to c/[email protected]

Welcome to PlayStation Couch, your ultimate destination for all things video games. Explore the latest trends, advanced techniques, and valuable tips to enhance your gaming skills and maximize your gaming experience.

[-] [email protected] 1 points 9 months ago

my biggest fear in all this is the malware spreading around :/

[-] [email protected] 1 points 9 months ago

@CorrodedCranium I wanted something more like reddit, hacker news to publicize my work. You know what I mean?

[-] [email protected] 1 points 9 months ago
[-] [email protected] 1 points 9 months ago

@DmMacniel that's right. i've been getting better at it and bringing in more and more new tools. thanks

[-] [email protected] 1 points 9 months ago
[-] [email protected] 1 points 9 months ago* (last edited 9 months ago)

@DmMacniel php and javascript. the problem is that many people advise me not to use php. but i think that this language is just as powerful as any other language.

view more: next ›

xiffu

joined 9 months ago