Načítám...

TypeScript

  • TypeScript #1

    Is it friday yet?

    function isItFridayYet(today: string): boolean {
        const theDay = today.toLowerCase().trim();
    
        if (theDay === "monday") {
            return false;
        } else if (theDay === "tuesday") {
            return false;
        } else if (theDay === "wednesday") {
            return false;
        } else if (theDay === "thursday") {
            return false;
        } else if (theDay === "friday") {
  • Žádné další prasokódy