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