Complete the code to declare an async function named fetchData.
func fetchData() [1] {
// function body
}The keyword async declares the function as asynchronous.
Complete the code to declare an async function that throws errors.
func loadData() [1] throws {
// function body
}The async keyword must come before throws in the function declaration.
Fix the error in the async function declaration.
func processData() [1] throws {
// function body
}async keyword.The async keyword must be placed before throws in the function declaration.
Fill both blanks to declare an async throwing function named fetchUser.
func fetchUser() [1] [2] { // function body }
The correct order is async throws to declare an async function that can throw errors.
Fill all three blanks to declare an async function named downloadData that returns a String and can throw errors.
func downloadData() [1] [2] -> [3] { // function body }
The function is declared as async throws and returns a String.
