Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

[30 pts] checkPointGiga.js. When your JavaScript program is complete and correct (but not before), use Fugu or WinSCP to upload the .js file to your

image text in transcribed
[30 pts] checkPointGiga.js. When your JavaScript program is complete and correct (but not before), use Fugu or WinSCP to upload the .js file to your p2 folder on the server. In the Gregorian calendar, one common year has 365 days. a) Read about the JavaScript Date Object, and Date Get Methods. Confirm that the .js file is on the server by opening it in Chrome. The JavaScript code will not execute, but this is OK-- it will just open as a text file in the browser b) In Atom, create a new prhgram file named checkPointGiga.js in your p2 folder. Remember: It's what's on the server that gets graded. Be sure to test your website on the server in Chrome. b) Write and test a function named checkPointGiga that accepts a string representing a date of birth, and returns the date the user will be one billion seconds of age. Use function declaration syntax to define the function. 3. [10 pts] checkPointGiga-v2.js. a) In Atom, use the File > Save As.. command to save checkPointGiga.js as checkPointGiga-v2.js in your p2 folder. Examples: b) Rewrite function checkPointGiga using function expression syntax, as covered in class. //Lady Gaga checkPointGiga( "03/28/1986") > Sun Apr 08 2012 01:46:40 GMT-0700 (PT

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Entity Alignment Concepts Recent Advances And Novel Approaches

Authors: Xiang Zhao ,Weixin Zeng ,Jiuyang Tang

1st Edition

9819942527, 978-9819942527

More Books

Students also viewed these Databases questions