I need help with this javascript assignment I fixed the code already but still get error after
Fantastic news! We've Found the answer you've been seeking!
Question:
I need help with this javascript assignment I fixed the code already but still get error after I test?
if the problem with my visual studio code so what the website compiler I can use to fix this errors
Transcribed Image Text:
To EXPLORER JS problem-07.test.js solutions.js-as1 JS problem-08.test.js JS problem-09.test.js JS problem-10.test.js JS solutions.js X OPEN EDITORS Users > haythamelsayed > WEB222 > Assignment 1 > a1 > src > JS solutions.js > ... LICENSE/Users/haythamelsayed/WEB2... {} package-lock.json /Users/haythamels... {} package.json /Users/haythamelsayed/... {} devcontainer.json.devcontainer 101 102 * @returns {string} * 103 104 * These are specially formatted comments that document parameters to functions, * and tell us the type (e.g., {string} or {number}), and also the parameter's name. 105 * We also indicate the return type for functions (e.g., {string}). JS problem-00.test.js /Users/haythamels... JS problem-01.test.js /Users/haythamelsa... JS problem-03.test.js /Users/haythamels... JS problem-02.test.js /Users/haythamels... 106 * 107 * Finally, we also explain a bit about how the parameter is used, and what 108 109 110 * data it will have, whether it's optional, etc. JS problem-04.test.js /Users/haythamels... 111 JS problem-05.test.js /Users/haythamels... 112 function greeting (name) { JS problem-06.test.js /Users/haythamels... 113 } 114 JS problem-07.test.js /Users/haythamelsa... JS problem-08.test.js /Users/haythamels... JS problem-09.test.js /Users/haythamels... JS problem-10.test.js /Users/haythamelsa... × Js solutions.js /Users/haythamelsayed/W... AS1 {}.package-lock.json > src LICENSE {} package-lock.json {} package.json OUTLINE 115 PROBLEMS return 'Hello ${name}!`; OUTPUT TERMINAL DEBUG CONSOLE ✓ greeting should be a function (3 ms) * greeting should return the correct string output (6 ms) • Problem - greeting() function > greeting should return the correct string output expect (received).to Be (expected) // Object.is equality Expected: "Hello WEB222 Student!" Received: "Hello WEB222 Student" 721 73 | > 74 test("greeting should return the correct string output", function () { let result = greeting("WEB222 Student"); expect(result).toBe("Hello WEB222 Student!"); greeting crush createlframe fixPostalCode toProvince > TIMELINE MAY 29 75 76 | 771 }); at Object.toBe (src/problem-00.test.js:74:20) Test Suites: 1 failed, 1 total Tests: Snapshots: Time: 1 failed, 1 passed, 2 total 0 total 4.783 s, estimated 7 s A W & & -- 80 RAMARINURNINwww bash v ☑ ☑ To EXPLORER JS problem-07.test.js solutions.js-as1 JS problem-08.test.js JS problem-09.test.js JS problem-10.test.js JS solutions.js X OPEN EDITORS Users > haythamelsayed > WEB222 > Assignment 1 > a1 > src > JS solutions.js > ... LICENSE/Users/haythamelsayed/WEB2... {} package-lock.json /Users/haythamels... {} package.json /Users/haythamelsayed/... {} devcontainer.json.devcontainer 101 102 * @returns {string} * 103 104 * These are specially formatted comments that document parameters to functions, * and tell us the type (e.g., {string} or {number}), and also the parameter's name. 105 * We also indicate the return type for functions (e.g., {string}). JS problem-00.test.js /Users/haythamels... JS problem-01.test.js /Users/haythamelsa... JS problem-03.test.js /Users/haythamels... JS problem-02.test.js /Users/haythamels... 106 * 107 * Finally, we also explain a bit about how the parameter is used, and what 108 109 110 * data it will have, whether it's optional, etc. JS problem-04.test.js /Users/haythamels... 111 JS problem-05.test.js /Users/haythamels... 112 function greeting (name) { JS problem-06.test.js /Users/haythamels... 113 } 114 JS problem-07.test.js /Users/haythamelsa... JS problem-08.test.js /Users/haythamels... JS problem-09.test.js /Users/haythamels... JS problem-10.test.js /Users/haythamelsa... × Js solutions.js /Users/haythamelsayed/W... AS1 {}.package-lock.json > src LICENSE {} package-lock.json {} package.json OUTLINE 115 PROBLEMS return 'Hello ${name}!`; OUTPUT TERMINAL DEBUG CONSOLE ✓ greeting should be a function (3 ms) * greeting should return the correct string output (6 ms) • Problem - greeting() function > greeting should return the correct string output expect (received).to Be (expected) // Object.is equality Expected: "Hello WEB222 Student!" Received: "Hello WEB222 Student" 721 73 | > 74 test("greeting should return the correct string output", function () { let result = greeting("WEB222 Student"); expect(result).toBe("Hello WEB222 Student!"); greeting crush createlframe fixPostalCode toProvince > TIMELINE MAY 29 75 76 | 771 }); at Object.toBe (src/problem-00.test.js:74:20) Test Suites: 1 failed, 1 total Tests: Snapshots: Time: 1 failed, 1 passed, 2 total 0 total 4.783 s, estimated 7 s A W & & -- 80 RAMARINURNINwww bash v ☑ ☑ To EXPLORER JS problem-07.test.js solutions.js-as1 JS problem-08.test.js JS problem-09.test.js JS problem-10.test.js JS solutions.js X OPEN EDITORS Users > haythamelsayed > WEB222 > Assignment 1 > a1 > src > JS solutions.js > ... LICENSE/Users/haythamelsayed/WEB2... {} package-lock.json /Users/haythamels... {} package.json /Users/haythamelsayed/... {} devcontainer.json.devcontainer 101 102 * @returns {string} * 103 104 * These are specially formatted comments that document parameters to functions, * and tell us the type (e.g., {string} or {number}), and also the parameter's name. 105 * We also indicate the return type for functions (e.g., {string}). JS problem-00.test.js /Users/haythamels... JS problem-01.test.js /Users/haythamelsa... JS problem-03.test.js /Users/haythamels... JS problem-02.test.js /Users/haythamels... 106 * 107 * Finally, we also explain a bit about how the parameter is used, and what 108 109 110 * data it will have, whether it's optional, etc. JS problem-04.test.js /Users/haythamels... 111 JS problem-05.test.js /Users/haythamels... 112 function greeting (name) { JS problem-06.test.js /Users/haythamels... 113 } 114 JS problem-07.test.js /Users/haythamelsa... JS problem-08.test.js /Users/haythamels... JS problem-09.test.js /Users/haythamels... JS problem-10.test.js /Users/haythamelsa... × Js solutions.js /Users/haythamelsayed/W... AS1 {}.package-lock.json > src LICENSE {} package-lock.json {} package.json OUTLINE 115 PROBLEMS return 'Hello ${name}!`; OUTPUT TERMINAL DEBUG CONSOLE ✓ greeting should be a function (3 ms) * greeting should return the correct string output (6 ms) • Problem - greeting() function > greeting should return the correct string output expect (received).to Be (expected) // Object.is equality Expected: "Hello WEB222 Student!" Received: "Hello WEB222 Student" 721 73 | > 74 test("greeting should return the correct string output", function () { let result = greeting("WEB222 Student"); expect(result).toBe("Hello WEB222 Student!"); greeting crush createlframe fixPostalCode toProvince > TIMELINE MAY 29 75 76 | 771 }); at Object.toBe (src/problem-00.test.js:74:20) Test Suites: 1 failed, 1 total Tests: Snapshots: Time: 1 failed, 1 passed, 2 total 0 total 4.783 s, estimated 7 s A W & & -- 80 RAMARINURNINwww bash v ☑ ☑
Expert Answer:
Answer rating: 100% (QA)
It seems like youve fixed the code to include template literals but theres still ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
A person who is 6 feet and 3 inches tall and weighs 185 pound force (lbf) is driving a car at a speed of 65 miles per hour over a distance of 25 miles between two cities. The outside air temperature...
-
Using the information from BE18-3, calculate the effective rate of income tax for Nilson Inc. for 2017. Also make a reconciliation from the statutory rate to the effective rate, using percentages. In...
-
Determine the magnitude of the resultant force and its direction. Measured counterclockwise from the positive xaxis F, = 750 N 30 F, = 625 N F = 850 N
-
A pressure cooker contains \(10 \mathrm{~kg}\) of saturated steam at 8 bar. Find the quantity of heat which must be rejected to reduce the quality to \(85 \%\). Determine the pressure and temperature...
-
Why was IKEAs initial entry into the United States not as successful as its expansion across Europe? What steps did the company take to turnaround its American business? What lessons can be learned...
-
Exercise 13-3 (Algo) Sourcing Decisions [LO13-3] Troy Engines, Limited, manufactures a variety of engines for use in heavy equipment. The company has always produced all of the parts for its engines,...
-
Fourth-Sixth-Twelfth Bank currently pays an annuall dividend of $1.40 per share. After extensive analysis, you forecast that the Bank's stock will continue to pay the $1.40 dividend for four years....
-
c) Rewrite program segment 1.3 using while statement. //Program segment 1.3 for (N=1; N
-
SPSS: Enter the following set of scores into SPSS, and run the specified commands listed below. Include your output as appropriate. 27 53 37 42 47 33 46 47 35 49 52 47 33 49 38 44 41 34 48 42 Using...
-
please help to analyze an analysis of value and a range of purchase or sale price for your company's transaction. For example, if you choose Adobe, you will present an analysis of how much Adobe...
-
find the zeros f ( x ) = 2 7 x ^ 3 - 6 4
-
Top Detergent (M) Sdn. Bhd. has produced the Original budget for its new product, Blooming Pleasure, to be launched in 2022. The customer that product targets is rich or affluent segment. Based on...
-
For December 31, 20XX, the balance sheet of the Gardner Corporation is as follows: Current Assets Cash Accounts receivable Inventory Prepaid expenses Capital Assets Plant and equipment (gross) Less:...
-
Find the distance from the point S (3, 2, 5) to the line x= 2t y = 1+ 2t z=2+3t
-
Consider the circuit of Fig. 7.97. Find v0 (t) if i(0) = 2 A and v(t) = 0. 1 3 ett)
-
Jason and Mary Wells, friends of yours, were married on December 30, 2012. They know you are studying taxes and have come to you with a question concerning their filing status. Jason and Mary would...
-
Phil and Linda are 25-year-old newlyweds and file a joint tax return. Linda is covered by a retirement plan at work, but Phil is not. a. Assuming Phil's wages were $27,000 and Linda's wages were...
-
Tom has a successful business with $100,000 of income in 2012. He purchases one new asset in 2012, a new machine which is 7-year MACRS property and costs $25,000. If you are Tom's tax advisor, how...
-
The magical elevator. There is a man who lives on the top floor of a very tall building. Every day he gets the elevator down to the ground floor to leave the building to go to work. Upon returning...
-
A murderer is condemned to death. He has to choose between three rooms. The first is full of raging fires, the second is full of assassins with loaded guns, and the third is full of lions that havent...
-
A man went outside without an umbrella or a raincoat, yet did not get wet.
Study smarter with the SolutionInn App