Skip to content
View chollsak's full-sized avatar
🎯
Focusing
🎯
Focusing
  • King Mongkut's Institute of Technology Ladkrabang
  • Bangkok, Thailand
  • 01:17 (UTC +07:00)
  • Instagram chollsak
  • Facebook chollsak
  • LinkedIn in/chollasak

Highlights

  • Pro

Block or report chollsak

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
chollsak/README.md

WELCOME Visitors! I'm Chollasak Anuwareepong

let sleepy: number = 0;
let knowledge: number = 0;

const getRandomNumber = (min: number, max: number): number => {
  return Math.floor(Math.random() * (max - min + 1)) + min;
}

while (sleepy < 100) {
  console.log("You are feeling sleepy. Keep staying awake to increase your knowledge!");

  const num1 = getRandomNumber(1, 10);
  const num2 = getRandomNumber(1, 10);
  const correctAnswer = num1 + num2;

  const answer: string | null = prompt(`What is ${num1} + ${num2}?`);

  if (answer === correctAnswer.toString()) {
    console.log("Correct! Your knowledge has increased.");
    knowledge += 1;
  } else {
    console.log("Incorrect. Try again.");
  }

  sleepy += 10;
  knowledge -= 1;

  console.log("Your current knowledge level is:", knowledge);
  console.log("Your current sleepiness level is:", sleepy);
}

console.log("You are too sleepy to continue. Game over!");

Discord Presence

Gmail: [email protected]
Gmail(KMITL): [email protected]


chollsak

Languages and Tools:

arduino babel bash bootstrap c cplusplus csharp css3 docker dotnet express figma firebase flutter git html5 java javascript linux mongodb mssql mysql nextjs nodejs opencv postgresql postman python react tailwind tensorflow typescript

chollsak

 chollsak

chollsak


Pinned Loading

  1. Smart-IoT-Silkworm-House Smart-IoT-Silkworm-House Public

    Automation's Research Advicer at Kalasinpittayasan School (Smart Farm)

    C++

  2. Dev-Renewlabour-Web Dev-Renewlabour-Web Public

    TypeScript

  3. JoinTy JoinTy Public

    Project in 01076120 WEB APPLICATION DEVELOPMENT PROJECT, KMITL

    HTML 3

  4. WokFood WokFood Public

    Project in 01076121 Theory of Computation, KMITL

    TypeScript 1 2

  5. Self-Learning-Courses Self-Learning-Courses Public

    All self-learning courses that I am currently on it.

    HTML

  6. TaskGenda TaskGenda Public

    Task Management web application with Notification system for learning backend development with NextJS and MongoDB

    JavaScript