function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Bareera NoorBareera Noor 

Trailhead Challenge : Create & Use Custom Controllers

I am stuck on this challenge I am keep getting following error:
User-added image

Here is my code for apex and visualforce controller:
<apex:page controller="NewCaseListController">
    <apex:form >
        <apex:pageBlock title="Case List" id="Case_list">
            <!-- Case_list -->
         <apex:repeat value="{!Case}" var="cs">
            <apex:outputLink value="{!cs.Id}">{!cs.Id}</apex:outputLink>
            <apex:outputLink value="{!cs.CaseNumber}">{!cs.CaseNumber}</apex:outputLink>
        </apex:repeat>     
        </apex:pageBlock>
    </apex:form>
</apex:page>



Public class NewCaseListController
{
    public List<Case> getnewCases()
    { 
    
         List<Case> results = Database.query(
     
           'SELECT Id, CaseNumber' + 
            'From Case'+ 
            'Where Status=\'New''
             );
           return results;
           
    }
}
 
Alain CabonAlain Cabon
There is a problem after the value: New perhaps if it is not just a wrong copy/paste.

 'Where Status=\'New''
 
public class NewCaseListController {
    public List<Case> getNewCases() {
        List<Case> results = Database.query(
            'SELECT Id, CaseNumber ' +
            'FROM Case ' +
            'WHERE status = \'New\''
        );
        return results;
    }
}

Regards