Javascript

Ace your homework & exams now with Quizwiz!

Jquery Ajax Post example

$.ajax({ url:"http://www.mydumbshitApi.com/api/stuff", type:"POST", data:{s:4}, success: function (result) { alert("success" + result); }, error: function (result) { alert("failure" + result); } });

AJAX stands for

Asynchronous JavaScript And XML.

what is a downside of interpreted language?

Interpreted languages would not be able to identify certain errors until code is actually run and tested. In a large application, it is very time consuming to manually test every scenario, or to write and maintain additional code that tests of every scenario, whenever code is changed. For example, in a compiled language if a method named GetUser is renamed to GetEmployee as part of some code updates, any reference to GetUser throughout the rest of the application will cause an error during compilation, making it easy to identify and fix.

Javascript Object-oriented

No distinction between types of objects. Inheritance is through the prototype mechanism, and properties and methods can be added to any object dynamically.

How is Node.js more advanced than javascript?

Node.js allow you to add more functionality to a website than simply downloading files (such as realtime collaboration between multiple computers). Inside a host environment (for example, a web browser), JavaScript can be connected to the objects of its environment to provide programmatic control over them

What's the purpose of Server Side Scripting

Server-side scripting. Server-side scripting is a method of designing websites so that the process or user request is run on the originating server. Server-side scripts provide an interface to the user and are used to limit access to proprietary data and help keep control of the script source code

What is JavaScript?

an object-oriented computer programming language commonly used to create interactive effects within web browsers.

Why was JQuery needed, if javascript existed?

jQuery is a lightweight, "write less, do more", JavaScript library. The purpose of jQuery is to make it much easier to use JavaScript on your website. jQuery takes a lot of common tasks that require many lines of JavaScript code to accomplish, and wraps them into methods that you can call with a single line of code. Jquery simplifies a lot of the complicated things from JavaScript, like AJAX calls and DOM manipulation

What is the prototype mechanism?

the prototype chain is a linked list where instead of adding more to an object you can point to a function, and still refer to it as if it were a member.


Related study sets

APES chapter 7: Climate and biodiversity

View Set

Oracle OM Certification Exam Prep

View Set

Musculoskeletal LECTURE Midterm FA 2019 Q2

View Set

JS/TS Short/Long Answer Questions

View Set

AT BOC Prep Domain III - Immediate and Emergency Care

View Set

Chapter 13 - Final Exam - MIE 330

View Set