← Back
Self-taught coursework (Alura)Programming logic & «Amigo Secreto» Challenge (Alura)Individual work

Programming logic in JavaScript (Alura)

From prompt to page: secret-number game and secret-friend draw

Problem

Solve the course's logic exercises and the «Amigo Secreto» challenge: guess a number with limited attempts and draw a friend from a list of names.

Data

No external data: names and numbers entered by the user.

Methods

  • Conditionals, loops and prompt/alert (console game, part 1)
  • DOM manipulation: input, ul/li lists, buttons enabled by state (part 2)
  • Random number without repetition within a range (drawn list, cap of 10)
  • Input validation and random draw from the friends list (challenge)

Tools

JavaScriptHTMLCSS

Logic exercises and challenges solved on course templates.