workshopper / javascripting

Learn JavaScript by adventuring around in the terminal.
http://nodeschool.io
MIT License
2.86k stars 1.04k forks source link

Exercise 17 - OBJECT KEYS - Output expectation mismatches problem description #346

Closed digiblackdranzer closed 1 year ago

digiblackdranzer commented 1 year ago

Describe the bug In the problem statement, it is mentioned that we are expected to create an object in file object-keys.js as follows:

const car = { make: 'Honda', model: 'Accord' }

However, while executing

javascripting verify object-keys.js

In output expected solution differs from what described in problem statement.

Output:

Your Attempt ===================

[ 'make', 'model']

Difference ===================

[ 'make', 'model', 'year']

To Reproduce Steps to reproduce the behavior:

  1. Create object-keys.js with following code:
car = {
    make:'Honda',
    model:'Accord'
}
keys = Object.keys(car)
console.log(keys)
  1. Execute: javascripting verify .\object-keys.js

Expected behavior It should output correct instead of giving error

Screenshots NA

Execution environment (please complete the following information):

digiblackdranzer commented 1 year ago

I forgot to mention that I'm using VSCode's terminal to do the workshop