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

Добавить инфу про деструктуризацию если пустой массив #108

Closed
pochka15 opened this issue Jan 6, 2023 · 1 comment

Comments

@pochka15
Copy link

pochka15 commented Jan 6, 2023

const arr = ['hello', 'world']
const [one, two, three, four] = arr
console.log(one, two, three, four) // hello world undefined undefined

const obj: any = {name: "bob"}
const {age} = obj
console.log(age) // undefined

@bondiano
Copy link
Collaborator

bondiano commented Jan 8, 2023

это сильно частные кейсы для этого урока

@bondiano bondiano closed this as completed Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants