Portiamo in evidenza questa notizia dal:
Videos matching: ajax video tutorial:
AJAX Tutorial – 9 – Handling Responses from the Server
If a variable is created without the “var” keyword, it makes that variable global. This means the variable can be used throughout the javascript file. Whereas a variable created with the “var” keyword is local and can only be used in that scope/function. In essence, you could make every variable in your file without the “var” keyword and it would still work correctly, however it is bad coding practice 🙂
Per questo post ringraziamo:
Videos matching: ajax video tutorial
e vi invitiamo a continuare la lettura su:
AJAX Tutorial – 9 – Handling Responses from the Server