frankcollins3 / fcc-mcsft-cSharp

FreeCodeCamp & Microsoft C# course:
1 stars 0 forks source link

cannot assign to func() because it is a method group [11:49am] #40

Closed frankcollins3 closed 1 year ago

frankcollins3 commented 1 year ago

attempting to do: bool function that evaluates range and returns 1 for truthiness Screen Shot 2023-09-11 at 11 45 45 AM

error: Screen Shot 2023-09-11 at 11 45 53 AM

proposed approach: // kind of lost since it seems: bool func() -> return bool value -> if statement checking for bool value 0: if (validateRange()) ---------> if (validateRange() == true)

// also take out else block { } ?

possible improvements:

frankcollins3 commented 1 year ago

human error. 👎 ValidateRange (was using the function name as the local bool) 👍 validRange is the local boolean to set to true or false could delete issue but keeping as documentation of thought process [11:57am]