Write some code in the javascript programming language

Assignment Help Management Information Sys
Reference no: EM131938130

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("<h1>Look over here</h1>")

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 <button> element to the HTML code, and add an event listener to change the message again when the button is clicked.

What does the function keyword mean in JavaScript?

What's the closest equivalent you've seen in machine instructions or TIS-100?

Task Three - Free and Open-Source Software

Free software and open-source software have somewhat different meanings, but are often used to describe the same thing - software with permissive licenses, developed in public. GitHub is the most popular (but not the only) site for hosting and managing the development of open- source and free software. It is a collaborative tool that lets programmers and other software developers share and discuss computer code. For this task, create an ePortfolio page to document your investigation.

Attachment:- Assignment Files.rar

Reference no: EM131938130

Questions Cloud

Calculate the ph at va : a) Find Ve (the volume of HCl at equivalent point) b) Calculate the pH at Va (the volume of HCl added) =0, 1/4 Ve, Ve, and 1.1 Ve
Create different rooms layout plan and pictures in three-d : Make a creative powerpoint following a business plan steps between 15-20 slides. Create the different rooms layout plan and pictures in 3D.
Summarize the statistics from the last two reporting years : Examine the reliability and validity of these statistics. Are they accurate? Why or why not?
Different organisms looked at with the microscope : What organelles are cellular structures were common to all the different organisms looked at with the microscope?
Write some code in the javascript programming language : ITECH1100 Understanding the Digital Revolution Lab - Software - In this lab, you will write some code in the JavaScript programming language
Write one page on product alert assignment : Write one page on Product Alert assignment. Product alerts are written to keep upper management informed about developments in the market that may have.
Identify the frames used by the leaders in the challenger : Identify the frame(s) used by the leaders in the Challenger and Columbia situations (i.e., Structure, HR, Political, and Symbolic).
How to process and retrieve trace evidence involving firearm : Analyze commonly accepted forensic techniques and contemporary specialized techniques available for crimes involving firearms.
Prepare report from recent financial reports : This assignment covers the in-depth theoretical concepts with some practical accounting task application based on the topics from the subject

Reviews

len1938130

4/11/2018 5:24:07 AM

Prerequisites - You should be comfortable with the materials from Week 3 – you should understand the CPU as a device which executes machine instructions, and RAM as an addressable chunk of bytes. If you are familiar with HTML then great! However, you won’t need an in-depth knowledge of it to complete this lab. Submission - To gain the marks for this lab, demonstrate your completed work to your tutor. Online students should submit their completed tasks 1 and 3 via the provided submission link in Moodle. Feedback - Feedback will be supplied either through Moodle or in-person during the laboratory session. Authoritative marks will be published through fdlMarks.

Write a Review

Management Information Sys Questions & Answers

  How should today pm assess risk to it projects

How should today's PM assess risk to IT projects? Include an example to back up your points.

  Conduct an analysis on selected organisation

Overview of the organisation and the industry with its structure, products, and major business processes. Use a flowcharting diagram for each area as a supplement to your descriptions.

  Describe the key initiatives currently underway at ach

Identify and analyze at least four digital payment concerns Centervale Apparel might want to consider in light of what you have learned from NACHA.

  Identify emerging opportunities for your sector

Identify emerging opportunities and challenges for your sector in general and for your organization in particular. Your views must be backed up with evidence and well-grounded reasoning.

  Review the critical considerations to prepare a procedure

Research the Internet to obtain information on Windows network security. Review the critical considerations to prepare a procedure guide.

  Explanation of common support services in technologyan end

explanation of common support services in technologyan end user is an individual or individuals who use or produce

  How will you provide users enough information about system

What are the physical locations where workstations, printers, servers, and other hardware will be installed and How will you provide users enough information about the system being installed to gain their confidence

  Describe a current it-related ethical issues

Describe a current IT-related ethical issue: Since this is a paper exercise, not a real-time situation, you may want to construct a brief scenario .

  What policies should be in place that limits officers

Chapter 12 talks about officers that moonlight when they are off duty. This has law enforcement agencies concerned about their officers not receiving enough rest and being fatigued while on the job. What policies should be in place that limits off..

  Search web for the leading providers of rfid technologies

Search the Web for the leading providers of RFID technologies. What companies did you find? Does one seem to stand out above the rest? If so, which is it?

  Perform an npv financial analysis for the project

Perform an NPV financial analysis for the mentioned project using the manual method. Assume that the projected costs and projected benefits.

  Determine the design issues with this new system

A large, fast-food chain unveiled a new touch screen register for its franchises. Each cashier was assigned a user id and password combination.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd