Question: can I please get the correct code to run for the attached JavaScript questions 4. I want my dog to bark(), but instead I get
can I please get the correct code to run for the attached JavaScript questions

4. I want my dog to bark(), but instead I get an error. Why? function Dog (name) { this.name = name Dog.bark = function () { console.log(this.name + I says woof'). } let fido = new Dog ('fido') fido.bark() 5. Why does this code return the results that it does? function is Big (thing) { if (thing == 0 || thing == 1 || thing return false == 2) { } return true } isBig (1) isBig ([ 2] ) isBig ([ 3] ). // false // false // true 6. Write a function to check if an input contains a substring in the following format. Please make use of regular expressions in this task. Sample input: (see bold text for substring to identify) domain.com/items/jyw73982/fentum-accumsan-1452261075-9781452261072 | result = true domain.com/items/der0932/ker-fooba-1461075-971072-123124124 | result = false domain.com/items/kdm3891/sem-mollis-fringilla-678123478691234-2345567 | result = true
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
