6.0k views
1 vote
You have imported a library with the birthMonth() function. Based on the API, how many strings are inputed to calculate the birth month?

User Wyx
by
4.5k points

2 Answers

4 votes

the answer is : 1

the guy above me has a good explanation

User Shfx
by
4.6k points
4 votes

Answer: Only 1 string is entered

str(dayWeek) is the only string entered into the function.

str(return) is outputted, not inputted.

Numbers are not strings.

// calculate birth month based on the day of the month, day of the week, and the birth year

// dayMonth {number} - a day of a month from 1 to 31

// dayWeek {string} - the name of the day of the week

// year {number} - the birth year

// return {string} - the month you were born

BirthdayLibrary.birthMonth(dayMonth, dayWeek, year);

User Marleny
by
4.5k points