Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Management Information System Expert

Understanding the Digital Revolution Lab - Software

Overview - In this lab, you will write some code in the JavaScript programming language, and explore the free and open-source software community.

Task Details -

Task One - JavaScript

JavaScript is a high-level interpreted programming language. It is built in to every popular web browser, including Chrome, Firefox, Internet Explorer, Edge, and Safari.

This lab assumes you are using Chrome, however most of the functions we'll use have equivalents in other browsers.

To get started, open Chrome and navigate to about:blank Instead of an http or https site. There are a few interesting about: pages which are built in to your browser. Try visiting about:credits

From this (blank) page, press either Ctrl-Shift-J (that is, hold Ctrl and Shift and press J) or F12 to open the Developer Tools for brevity, we'll refer to the Developer Tools as DevTools.

Task 1.a - Using JavaScript as a calculator

See the > character in the Console tab? That is a prompt, a place where you can type JavaScript for it to be executed immediately.

Task 1.b - Talking to the browser

JavaScript by itself can't do much of interest besides cool maths. JavaScript gets much more interesting when you use it to manipulate the web browser itself.

Try typing each of the following lines of code, and again, note the response:

  • alert("Hello")
  • prompt("How great is this lab?")
  • document.write("

    Look over here

    ")

Each of these gave you some way of modifying the page or interacting with the user.

Task 1.c - Variables

When we were exploring machine instructions, we looked at registers and RAM as ways to (temporarily) store values while we were working on them

For instance, in the linear search we stored an memory address at cell 72

JavaScript (and most other programming languages) make this easier for you, by letting you create variables. A variable is analogous to a register or location in RAM, but you don't have to worry about where it is stored in RAM.

Try the following lines of code, in order, to get a sense of what variables are:

  • var age = prompt("How old are you?")
  • var message = "Your age is " + age;
  • alert(message)

Note how we ask the user (you, in this case) for some information, store it in a variable and do something with it. However, we don't need to know or make up an address in RAM in which to store the age.

Task Two - JavaScript using jsFiddle

In Task 1.c you wrote a series of lines of code that combine to make some interesting behaviour. In this exercise, you will write multiple lines of JavaScript to change a web page.

Task 2.a - jsFiddle

Close the DevTools, and in your web browser - jsFiddle is a web site that lets you explore and play with HTML, CSS and JavaScript without needing to run your own web server.

Task 2.b - Functions and Event listeners (Optional, advanced)

Add a

Management Information System, Management Studies

  • Category:- Management Information System
  • Reference No.:- M92776786

Have any Question?


Related Questions in Management Information System

Defining risk management threats mitigation policythreats

Defining Risk Management: Threats, Mitigation, Policy Threats to company IT assets come from both external and internal sources. Based on the resources and discussions you have completed in the first two units, write a p ...

Research the art and evolution of code breaking

Research the art and evolution of code breaking (cryptanalysis). Explore how it was achieved during World War II between the Axis and Allies in terms of Enigma and Ultra. Then research how its done today -compare and con ...

Assignmentyou are still the project manager for the

Assignment You are still the project manager for the computer upgrades. Briefly describe the four 4 risks you identified in Unit 2's Individual Project. Using the risk assessment techniques, describe your assessment deci ...

Choose a youtube video about html5 and css which is

Choose a YouTube video about HTML5 and CSS, which is respectful and abides by Saint Leo University's Core Values. Watch the video and write a paragraph summarizing the video. Describe it and provide the URL. Remember: It ...

Discussion one of the challenges of big data and the use of

Discussion : One of the challenges of big data and the use of it to solve problems is understanding the context and quality of the data being used. This is particularly true when internal data is integrated with external ...

Assignment1 you have been asked to help promote a new bill

Assignment 1) You have been asked to help promote a new bill in your state, to which there is much opposition to this bill. Discuss what distributive bargaining is. Discuss the pros and cons which might arise toward the ...

Business goals and constraints please respond to the

"Business Goals and Constraints." Please respond to the following: • Discuss some of the key considerations in designing a network design strategy. What approaches have worked for you in your present role or would you pr ...

Question what is the resolution and unification algorithm

Question : What is the resolution and unification algorithm, and what is an algorithm? What is the Turing test, and who is Alan Turing? What is a neural network? Can machines really demonstrate intelligence?

The case study information systems failure at integrated

The case study Information Systems Failure at Integrated Solutions is a supplementary online case by Jessup and Valacich. Jessup, L., & Valacich. J. (2010). Chapter 8. Information Systems Today: Why IS Matters. Pearson P ...

Exercise 73 filling the human gapyou work for a medium

Exercise 7.3: Filling the Human Gap You work for a medium seized manufacturing company that has a well developed DR plan. The plan is well tested and the testing has revealed a serious personnel gap During a recovery, ke ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As