Skip navigation
@{ var myMessage ="Hello World"; }

The value of myMessage is: @myMessage

@{ var greeting = "Welcome to our site!"; var weekDay = DateTime.Now.DayOfWeek; var greetingMessage = greeting + " Here in Chicago it is: " + weekDay; }

The greeting is: @greetingMessage