I have Index.cshtml page with code
<h2>Calculation and approval of bonuses</h2>
<script>
function getview() {
var d = 2
return d;
}
</script>
@{
int i=getview()?????????
;}
how to I can get into variable "i" the result from getview() function. Thanks