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

tiny world pre-OOP #618

Merged
merged 12 commits into from
Sep 27, 2022
Prev Previous commit
sorry, my kid must have erased some code. Re-wrote it
  • Loading branch information
YuraZagor committed Sep 27, 2022
commit 089351997f61e69a04993c67b53becf077dd5b3b
6 changes: 2 additions & 4 deletions submissions/YuraZagor/tiny world pre-oop/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ cat_woman.saying = cat.saying;
inhabitants.forEach((inhabitant)=>{
const {species, name, gender, legs, paws, hands, tail, saying, friend} = inhabitant;
const inhabitantProperties = [species, name, gender, legs ? legs : paws, hands ? hands : tail, saying, friend]

inhabitantProperties('; '),'div')
const inhabitantPropertiesList = inhabitantProperties.join('; ')
print(inhabitantPropertiesList, 'div')
})