Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aa58add

Browse files
authored
Update README.md
1 parent a814e35 commit aa58add

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,14 @@ Advise on how to make a test:
4646
1. Write and call a function that creates and appends a <p> tag to the <body> of an HTML file. Make use of the already predefined DOM methods createElement() and appendChild(). The innerText of the <p> should be “hello HackYourFuture!”.
4747

4848
2. Correct the code to make it work, by filling in the grey boxes:
49-
`…………… multiplyNumbers( …….. , …….. ) {
49+
```
50+
…………… multiplyNumbers( …….. , …….. ) {
5051
const …………… = …….. * …….. ;
5152
return …………… ;
5253
….
5354
multiplyNumbers( 6 , ……………
54-
// Return value should be 30`
55-
55+
// Return value should be 30
56+
```
5657
3. Transform the given array of strings named letters into a new array with numbers (for example: `numbers = [0, 1, 2, 3 ]` ), by creating a new function called lettersToNumbers. Log the new array to the console. Return the new array. Make use of the map() array function.
5758
`const letters = [ ‘a’ , ‘b’ , ‘c’ , ‘d’ ];`
5859

0 commit comments

Comments
 (0)