there are two common approaches.
the first is to render the model as a javascript object. that is render javascript code. fortunately json is valid javascript you you render the model data as json and assign to object
<script>
var model = @Html.Raw(JsonSerializer.Serialize(Model));
</script>
the second way for the javascript to make an ajax call.