Answer the question
In order to leave comments, you need to log in
How to correctly write data to an array and what is the logic?
Create two fields. In one, the user enters a birthday, in the second - a month (in the form of a number). Print the zodiac sign under which the user was born. Store data about the sign of the zodiac in an array.
This is the task of how to correctly write data to an array ?????
Answer the question
In order to leave comments, you need to log in
I would like to make the registration form so that it is 1,2,3,4,5,6- this is for freelancers
I would do that
const signs = [
{ name: 'Овен', from: 321, to: 419 },
{ name: 'Телец', from: 420, to: 520 },
{ name: 'Близнецы', from: 521, to: 620 }
]
let array = [];
array.push('Первое значение', 'Второй значение');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question