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 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.
Limitations of javaScript are the following:
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:
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:
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 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 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 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.