Question

In: Computer Science

Why are the language features of JavaScript especially well­-suited to client side programming?

Why are the language features of JavaScript especially well­-suited to client side programming?

Solutions

Expert Solution

JavaScript is a client-side scripting language, which means the source code is processed by the client's web browser rather than on the web server. This means JavaScript functions can run after a webpage has loaded without communicating with the server.

While JavaScript is not the only client-side scripting language on the Internet, it was one of the first and it is still the most widely used. Many developers believe that JavaScript is inefficient and finicky, so they have made many improvements to the language over the years.

There are many client-side scripting languages too.

  • JavaScript.
  • VBScript.
  • HTML (Structure)
  • CSS (Designing)
  • AJAX.
  • jQuery etc.

Common Characteristics of Scripting languages.

  • Both Batch and Interactive use.
  • Economy of Expression.
  • Lack of declarations; simple scoping rules.
  • Flexible dynamic typing.
  • Easy access to other programs.
  • Sophisticated Pattern matching.
  • High-level data types.

Related Solutions

JavaScript is executed all on the client side within the browser. What kind of tasks or...
JavaScript is executed all on the client side within the browser. What kind of tasks or applications do you think is best to be executed completely on the client side, without communicating with the server? Give an example.
Client side program: Develop a client side program which will do the following: The client side...
Client side program: Develop a client side program which will do the following: The client side would accept the customer ID and the amount that customer has spent. The client will then forward the customer ID and the amount spend the server. (Include field validation wherever possible) a. Request connection to the server b. Accept and forward the necessary data to the server c. Receive and display the results from the server d. Close the connection after use
what are the different function features of python and javascript?
what are the different function features of python and javascript?
1.JavaScript is a dynamic and loosely typed language. What is the significance of these language descriptors?...
1.JavaScript is a dynamic and loosely typed language. What is the significance of these language descriptors? 2.JavaScript variables are hoisted at run time. What does this mean and how does it impact function design? 3.Define a variable in JavaScript that is assigned an anonymous function. This function should take two values as input and give back the sum 4. Most of the JavaScript use in Web Development is through the DOM. What does DOM stand for? 5.Two of the primary...
LISP Programming Language Write a Bubble Sort program in the LISP Programming Language called “sort” that...
LISP Programming Language Write a Bubble Sort program in the LISP Programming Language called “sort” that sorts the array below in ascending order.  LISP is a recursive language so the program will use recursion to sort. Since there will be no loops, you will not need the variables i, j, and temp, but still use the variable name array for the array to be sorted.             Array to be sorted is 34, 56, 4, 10, 77, 51, 93, 30, 5, 52 The...
C Programming Language (Code With C Programming Language) Problem Title : Which Pawn? Jojo is playing...
C Programming Language (Code With C Programming Language) Problem Title : Which Pawn? Jojo is playing chess himself to practice his abilities. The chess that Jojo played was N × N. When Jojo was practicing, Jojo suddenly saw a position on his chessboard that was so interesting that Jojo tried to put the pieces of Rook, Bishop and Knight in that position. Every time he put a piece, Jojo counts how many other pieces on the chessboard can be captured...
Can you explain why we need server-side programming? (cite at least 3 reasons)
Can you explain why we need server-side programming? (cite at least 3 reasons)
GPA calculator in C language To understand the value of records in a programming language, write...
GPA calculator in C language To understand the value of records in a programming language, write a small program in a C-based language that uses an array of structs that store student information, including name, age, GPA as a float, and grade level as a string (e.g., “freshmen,” etc.). Note:Code and Output Screenshots
Language-Classic theories of language acquisition include biological and environmental influences of language development. Which side would...
Language-Classic theories of language acquisition include biological and environmental influences of language development. Which side would you take and why?
How does the addition of computation on the server side and client side alter Sir Tim...
How does the addition of computation on the server side and client side alter Sir Tim Berners Lee’s original computational model?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT