Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

98 and 102 questions are broken (in russian at least) #249

Closed
krutoo opened this issue Oct 5, 2019 · 2 comments
Closed

98 and 102 questions are broken (in russian at least) #249

krutoo opened this issue Oct 5, 2019 · 2 comments

Comments

@krutoo
Copy link

krutoo commented Oct 5, 2019

98:

const getList = ([x, ...y]) => [x, y]
const getUser = user => { name: user.name, age: user.age } // Syntax Error here!

const list = [1, 2, 3, 4]
const user = { name: "Lydia", age: 21 }

console.log(getList(list))
console.log(getUser(user))

102:

const myPromise = () => Promise.resolve('I have resolved!')

function firstFunction() {
  myPromise().then(res => console.log(res))
  console.log('second')
}

function secondFunction() { // need "async" keyword here 
  console.log(await myPromise())
  console.log('second')
}
@oshliaer
Copy link
Contributor

oshliaer commented Oct 5, 2019

Q98 => #220

@oshliaer
Copy link
Contributor

oshliaer commented Oct 5, 2019

Q102 => #250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants