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

  Information technology and the changing fabric

Illustrations of concepts from organizational structure, organizational power and politics and organizational culture.

  Case study: software-as-a-service goes mainstream

Explain the questions based on case study. case study - salesforce.com: software-as-a-service goes mainstream

  Research proposal on cloud computing

The usage and influence of outsourcing and cloud computing on Management Information Systems is the proposed topic of the research project.

  Host an e-commerce site for a small start-up company

This paper will help develop internet skills in commercial services for hosting an e-commerce site for a small start-up company.

  How are internet technologies affecting the structure

How are Internet technologies affecting the structure and work roles of modern organizations?

  Segregation of duties in the personal computing environment

Why is inadequate segregation of duties a problem in the personal computing environment?

  Social media strategy implementation and evaluation

Social media strategy implementation and evaluation

  Problems in the personal computing environment

What is the basic purpose behind segregation of duties a problem in the personal computing environment?

  Role of it/is in an organisation

Prepare a presentation on Information Systems and Organizational changes

  Perky pies

Information systems to adequately manage supply both up and down stream.

  Mark the equilibrium price and quantity

The demand schedule for computer chips.

  Visit and analyze the company-specific web-site

Visit and analyze the Company-specific web-site with respect to E-Commerce issues

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