Question: Advanced JavaScript fill in the blanks. Please dont guess! #1 part 1 Assign re with a regular expression that matches an email address ending in

Advanced JavaScript fill in the blanks. Please dont guess!

#1 part 1

Assign re with a regular expression that matches an email address ending in org. Ex: example@example.org

var re /* Your solution goes here */;

---------------------------------------------------------------------------

#1 part 2

Write a statement to display the year from the regular expression match in result. Note: The given date is in month, day, year order.

var re = /(\d+)\-(\d+)\-(\d+)/; var date = "4-15-91"; // Code will also be tested with value "11-2-2015" var result = re.exec(date);

/* Your solution goes here */

---------------------------------------------------------------------------

#1 part 3

Create a Puppy class with private property age and both a getter and a setter for that property called getAge and setAge. The constructor should take a parameter to initialize the private property.

/* Your solution goes here */

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!