Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
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
Step by Step Solution
★★★★★
3.53 Rating (160 Votes )
There are 3 Steps involved in it
Step: 1
It seems like youve fixed the code to include template literals but theres still ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started