Question

Primary Task Response: Within the Discussion Board area, write 400–600 words that respond to the following...

Primary Task Response: Within the Discussion Board area, write 400–600 words that respond to the following questions with your thoughts, ideas, and comments. This will be the foundation for future discussions by your classmates. Be substantive and clear, and use examples to reinforce your ideas.

JavaScript is used in for client-side scripting of Web pages. JavaScript is very versatile and increases the interactivity of Web sites. Research online, and discuss the purposes and uses of JavaScript. Answer the following in your post:

  • JavaScript is frequently thought to be related to Java. Explain the difference between the JavaScript and Java and include the lack of relationship between the two.
  • What instances should JavaScript not be used on a Web site? Why or why not?
  • Provide an example in which JavaScript could be used to interactively change images on a Web page that would provide a significant benefit to the Web site audience.
  • Is adding too much JavaScript interactivity to a Web site detrimental? Why or why not?
0 0
Add a comment Improve this question Transcribed image text
Answer #1

JavaScript is a dynamic computer high- level language. Most commonly used in web pages, allows client-side script to interact with the user and create dynamic pages. Object-oriented capabilities and it's light weightedness makes it more common to use in web pages. Client-side javaScript means that script should be included in or referenced by an HTML document for the code to be interpreted by the browser or we can say that a web page need not be a static HTML, but can include programs that interact with the user, control the browser, and dynamically create HTML content. For Example, we use JavaScript to check if the user has entered a valid e-mail address or not in a form field.

The advantages of javaScript are the following:

  • Less server interaction − Validating user input before sending the page off to the server which means less load on our server.

  • Immediate feedback to the visitors − The end user does not have to wait for a page reload to see if they have forgotten to enter something.

  • Increased interactivity −Creating interfaces like use of mouse for a click etc.

  • Richer interfaces − JavaScript can be used to include such items as drag-and-drop components and sliders to give a good Interface to end users.

Limitations of javaScript are the following:

  • It does not allow reading or writing of files.
  • It does not support multi-threading.
  • It does not have networking capabilities.

Above sited are the few reasons due to which JS cannot be used for full-fledged programming language.

Java JavaScript
Java is strongly typed language and variable must be declared first to use in a program. The variable are checked at the compile time JavaScript is weakly typed language and have more easy syntax and rules
Java applications can run in any virtual machine(JVM) or browser. JavaScript code run on browser only as JavaScript is developed for browser only.
Objects of Java are class based even we can’t make any program in java without creating a class. JavaScript Objects are prototype based.
Java is a Standalone language. contained within a web page and integrates with its HTML content.
Java has a thread based approach to concurrency. Javascript has event based approach to concurrency.

The instance that stops us from using JavaScript on a website are:

  • When there is lot of reading and writing of files in the webpage because it does not support file system due to security issues.
  • JS is not recommended where there is multithreading required as it does not have capability of multithreading
  • If JS is disabled in user's browser, they might not be able to submit forms.

An example in which JavaScript could be used to interactively change images on a Web page that would provide a significant benefit to the Web site audience:

On websites like Netflix, Primevideo, the changing images on a home page helps the end user to see what are the new updated movies/shows available on the website. It also helps to click and directly navigate to the movie/show.

Is adding too much JavaScript interactivity to a Web site detrimental? Why or why not

Ofcourse, more the javascript code, more is the blotting. It’s a problem for both traditional web apps and single-page apps. Traditional web apps always end up needing some form of interaction that cannot be satisfied by links and forms alone. This leads developers to add a new single purpose widget for each novel interaction.

The solution for the problem is to just add interactivity and nothing else. Keep it as cost effective as possible by the following suggestions:

  • Identify the most critical user flows.
  • Work with design to determine if those user flows can be significantly improved with JavaScript functionality. If they can’t, stop right here.
  • If the user flow can be improved with JavaScript, and that user flow is critical, then begin that island of interactivity with a static html rough draft.
Add a comment
Know the answer?
Add Answer to:
Primary Task Response: Within the Discussion Board area, write 400–600 words that respond to the following...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Primary Task Response: Within the Discussion Board area, write 300–500 words that respond to the following...

    Primary Task Response: Within the Discussion Board area, write 300–500 words that respond to the following questions with your thoughts, ideas, and comments. Do you know where your food comes from? Throughout history, self-sufficiency has been the norm for acquiring food such as grains, meats, fruits, and vegetables. People and nations grew their own food and traded only on a local level. Today, food trade between nations has intensified, food is shipped thousands of miles across the globe, and world...

  • write 300 – 450 words that respond with your thoughts, ideas, and comments about Nestle company...

    write 300 – 450 words that respond with your thoughts, ideas, and comments about Nestle company and how their practices has been able to keep away from the negative backlash from Americans based on their investments within the United States. You will discuss your findings, which will be used as the foundation for further discussions by your classmates. Each learner’s discussion will include: Provide a brief history of the company you selected and where they are headquartered. Explain what product...

  • Please no copying or pasting and no plagiarism. write 400–600 words that respond to the following...

    Please no copying or pasting and no plagiarism. write 400–600 words that respond to the following questions with your thoughts, ideas, and comments. Conduct research using the library and Internet for information about electronic crime scenes and digital evidence collection. Explain what you consider to be the most important step to do while at a crime scene involving electronic evidence, and why you think this is most important. Please provide references.

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT