Como ler a chave da Web Config em JavaScript
<script>
var apiUrl = '@System.Configuration.ConfigurationManager.AppSettings["url"]';
</script>
Crazy Coyote
<script>
var apiUrl = '@System.Configuration.ConfigurationManager.AppSettings["url"]';
</script>