if chooseactivity is a JavaScript promise object that returns a string value, the code you should use to initiate this promise is:
chooseActivity
.then(choiceMsɡ => console.log(choiceMsɡ))
.then(choiceMsɡ => console.log(choiceMsɡ));
<h3>What is JavaScript?</h3>
When building websites, applications, servers, and even video games, web developers frequently use the lightweight programming language JavaScript to create more dynamic interactions.
Along with HTML and CSS, developers typically use JavaScript. In order to format HTML elements, the scripting language works well with CSS. User interaction is still maintained by JavaScript despite CSS's inability to do so.
It is worthwhile to learn JavaScript because it is used in the creation of websites, mobile applications, and video games. You can do this by using educational websites like BitDegree or by investigating free JavaScript applications and templates on websites that host source code, like GitHub.
Learn more about JavaScript
brainly.com/question/16698901
#SPJ4
Answer:
Answer is in the provided screenshot.
Explanation:
You are making this more confusing for yourself by doing it like this.
I have added variables at the top of your program for game messages that are repeated - and also simplified the given cases for if the player wins, loses or ties.
I invite you to now make a point tracker that, at the start of each game says: You have "x" points.
And you gain a point for winning, lose a point for losing and nothing happens if you tie.
To add a while loop - simply use the "while" keyword, and anything within the loop will repeat while the given condition is true.
Answer:
It will take more time to execute. D
Explanation:
In procedural languages, it takes more time because they have to do the same thing over again and again so of course it takes more time.