Quiz: Interoperating with JavaScript

Test yourself on Blazor's interoperation with JavaScript.

JavaScript Interop in Blazor

1

What method can we call the C# code in Blazor to invoke a JavaScript function that doesn’t return a value?

A)

InvokeAsync

B)

InvokeVoidAsync

C)

Either InvokeAsync or InvokeVoidAsync

D)

JSInvokable

Question 1 of 50 attempted

Get hands-on with 1200+ tech skills courses.