IT 3215: Unit 02 Discussion DQ1 Arrays, Loops, and the DOM
IT 3215: Unit 02 Discussion DQ1 Arrays, Loops, and the DOM
You have learned about working with the DOM with CSS, but you can also work with the DOM
using JavaScript. You will be able to alter and manipulate the DOM dynamically
with JavaScript to extend basic JavaScript functionality by using loops,
events, controls, arrays, and functions. Research and describe some tips for
someone new to JavaScript to get started. In particular, focus on at least two
of the following points while providing sample code (with comments) for each:
Explain how arrays and loops be utilized effectively together versus separate variable
declarations.
Describe the flow of control for while, do-while, and for loops.
Describe the use of a JavaScript array, including the use of its index and length
property.
Describe these methods for working with forms and controls: submit, reset, focus, blur.
Describe the use of the Document Object Model in JavaScript applications.
Describe these events for working with controls: onfocus, onblur, onclick, ondblclick,
onchange, onselect.
Describe
the process of creating and adding nodes to the DOM, including adding rows and
cells to a DOM table.
Distinguish
between a function expression and a function declaration, including which one can
be called before it is defined.
Response
Guidelines
Comment on
the post of at least two other learners. Offer insights, solutions, examples or
opinions that add depth and value to the conversation.
Learning
Components
This
activity will help you achieve the following learning components:
Understand
how to dynamically add HTML elements to an existing page by manipulating the
DOM.
Examine
when arrays are utilized.
View
examples of effective JavaScript comments that describe and explain variables
and functions.
Know the
difference between an array and a variable.
Understand
the different types of loops.
Resources
Discussion
Participation Scoring Guide.
Toggle
Drawer
APA Writing Checklist
Use this document as a checklist for each paper you will write throughout your GCU graduate program. Follow specific instructions indicated in the assignment and use this checklist to help ensure correct grammar and APA formatting. Refer to the APA resources available in the GCU Library and Student Success Center.
☐ APA paper template (located in the Student Success Center/Writing Center) is utilized for the correct format of the paper. APA style is applied, and format is correct throughout.
☐ The title page is present. APA format is applied correctly. There are no errors.
☐ The introduction is present. APA format is applied correctly. There are no errors.
☐ Topic is well defined.
☐ Strong thesis statement is included in the introduction of the paper.
☐ The thesis statement is consistently threaded throughout the paper and included in the conclusion.
☐ Paragraph development: Each paragraph has an introductory statement, two or three sentences as the body of the paragraph, and a transition sentence to facilitate the flow of information. The sections of the main body are organized to reflect the main points of the author. APA format is applied correctly. There are no errors.
☐ All sources are cited. APA style and format are correctly applied and are free from error.
☐ Sources are completely and correctly documented on a References page, as appropriate to assignment and APA style, and format is free of error.
Scholarly Resources: Scholarly resources are written with a focus on a specific subject discipline and usually written by an expert in the same subject field. Scholarly resources are written for an academic audience.
Examples of Scholarly Resources include: Academic journals, books written by experts in a field, and formally published encyclopedias and dictionaries.
Peer-Reviewed Journals: Peer-reviewed journals are evaluated prior to publication by experts in the journal’s subject discipline. This process ensures that the articles published within the journal are academically rigorous and meet the required expectations of an article in that subject discipline.
Empirical Journal Article: This type of scholarly resource is a subset of scholarly articles that reports the original finding of an observational or experimental research study. Common aspects found within an empirical article include: literature review, methodology, results, and discussion.
Adapted from “Evaluating Resources: Defining Scholarly Resources,” located in Research Guides in the GCU Library.
☐ The writer is clearly in command of standard, written, academic English. Utilize writing resources such as Grammarly, LopesWrite report, and ThinkingStorm to check your writing.
Check Out Also : IT 3215: Unit 01 Discussion DQ2 Challenges to Using Variables in a Form