Challenges

Simple Greeting

Welcome to Apex methods! A method is a block of code that performs a specific task. Let's start with the basics.

Complete the method sayHello that takes no parameters and returns the String "Hello". This is your first method - it simply returns a value!

Example:
sayHello() should return "Hello"

Editor
Test Results

Result Panel

Hit the run button to test your code!