Yatzy JavaScript [on hold]











up vote
-5
down vote

favorite












Need help if anyone could help me with the following in JavaScript



Depending on how many sexes you've hit, convert it to the following answers



1 = It became a six
2 = You got a pair
3 = You got three
4 = You got quote
5 = YATZY


The function should look like this:



function analysis (antSex) {

// ... your code here

}


When submitting the number of sexes, x, between 1 and 5, the function returns the corresponding response from the table. In all other cases, the function returns undefined. See the results file (Links to an external page.) Links to an external page ..



Requirements: The function should use if-else to determine the correct answer. No printing shall be made in the function.










share|improve this question







New contributor




SlipsknuteN is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as off-topic by Heslacher, Mast, 200_success, Toby Speight, Sᴀᴍ Onᴇᴌᴀ 10 hours ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Heslacher, Mast, 200_success, Toby Speight, Sᴀᴍ Onᴇᴌᴀ

If this question can be reworded to fit the rules in the help center, please edit the question.









  • 3




    Welcome to Code Review. Unfortunately your question is off-topic as of now, as the working code to be reviewed must be present in the question. Please add the code you want reviewed in your question. Thanks!
    – Heslacher
    12 hours ago















up vote
-5
down vote

favorite












Need help if anyone could help me with the following in JavaScript



Depending on how many sexes you've hit, convert it to the following answers



1 = It became a six
2 = You got a pair
3 = You got three
4 = You got quote
5 = YATZY


The function should look like this:



function analysis (antSex) {

// ... your code here

}


When submitting the number of sexes, x, between 1 and 5, the function returns the corresponding response from the table. In all other cases, the function returns undefined. See the results file (Links to an external page.) Links to an external page ..



Requirements: The function should use if-else to determine the correct answer. No printing shall be made in the function.










share|improve this question







New contributor




SlipsknuteN is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as off-topic by Heslacher, Mast, 200_success, Toby Speight, Sᴀᴍ Onᴇᴌᴀ 10 hours ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Heslacher, Mast, 200_success, Toby Speight, Sᴀᴍ Onᴇᴌᴀ

If this question can be reworded to fit the rules in the help center, please edit the question.









  • 3




    Welcome to Code Review. Unfortunately your question is off-topic as of now, as the working code to be reviewed must be present in the question. Please add the code you want reviewed in your question. Thanks!
    – Heslacher
    12 hours ago













up vote
-5
down vote

favorite









up vote
-5
down vote

favorite











Need help if anyone could help me with the following in JavaScript



Depending on how many sexes you've hit, convert it to the following answers



1 = It became a six
2 = You got a pair
3 = You got three
4 = You got quote
5 = YATZY


The function should look like this:



function analysis (antSex) {

// ... your code here

}


When submitting the number of sexes, x, between 1 and 5, the function returns the corresponding response from the table. In all other cases, the function returns undefined. See the results file (Links to an external page.) Links to an external page ..



Requirements: The function should use if-else to determine the correct answer. No printing shall be made in the function.










share|improve this question







New contributor




SlipsknuteN is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











Need help if anyone could help me with the following in JavaScript



Depending on how many sexes you've hit, convert it to the following answers



1 = It became a six
2 = You got a pair
3 = You got three
4 = You got quote
5 = YATZY


The function should look like this:



function analysis (antSex) {

// ... your code here

}


When submitting the number of sexes, x, between 1 and 5, the function returns the corresponding response from the table. In all other cases, the function returns undefined. See the results file (Links to an external page.) Links to an external page ..



Requirements: The function should use if-else to determine the correct answer. No printing shall be made in the function.







javascript






share|improve this question







New contributor




SlipsknuteN is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




SlipsknuteN is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




SlipsknuteN is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 12 hours ago









SlipsknuteN

1




1




New contributor




SlipsknuteN is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





SlipsknuteN is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






SlipsknuteN is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




put on hold as off-topic by Heslacher, Mast, 200_success, Toby Speight, Sᴀᴍ Onᴇᴌᴀ 10 hours ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Heslacher, Mast, 200_success, Toby Speight, Sᴀᴍ Onᴇᴌᴀ

If this question can be reworded to fit the rules in the help center, please edit the question.




put on hold as off-topic by Heslacher, Mast, 200_success, Toby Speight, Sᴀᴍ Onᴇᴌᴀ 10 hours ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Heslacher, Mast, 200_success, Toby Speight, Sᴀᴍ Onᴇᴌᴀ

If this question can be reworded to fit the rules in the help center, please edit the question.








  • 3




    Welcome to Code Review. Unfortunately your question is off-topic as of now, as the working code to be reviewed must be present in the question. Please add the code you want reviewed in your question. Thanks!
    – Heslacher
    12 hours ago














  • 3




    Welcome to Code Review. Unfortunately your question is off-topic as of now, as the working code to be reviewed must be present in the question. Please add the code you want reviewed in your question. Thanks!
    – Heslacher
    12 hours ago








3




3




Welcome to Code Review. Unfortunately your question is off-topic as of now, as the working code to be reviewed must be present in the question. Please add the code you want reviewed in your question. Thanks!
– Heslacher
12 hours ago




Welcome to Code Review. Unfortunately your question is off-topic as of now, as the working code to be reviewed must be present in the question. Please add the code you want reviewed in your question. Thanks!
– Heslacher
12 hours ago















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Quarter-circle Tiles

build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

Mont Emei