mirror of
https://github.com/microsoft/Web-Dev-For-Beginners.git
synced 2025-08-22 06:12:55 +02:00
Added intial files for hindi translation
This commit is contained in:
18
4-typing-game/translations/.github/post-lecture-quiz.hi.md
vendored
Normal file
18
4-typing-game/translations/.github/post-lecture-quiz.hi.md
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
*Complete this quiz by checking one answer per question.*
|
||||
|
||||
1. Just about anything a user does on a page raises an event
|
||||
|
||||
- [ ] true
|
||||
- [ ] false
|
||||
|
||||
2. Common events include
|
||||
|
||||
- [ ] click_event
|
||||
- [ ] select_event
|
||||
- [ ] input_event
|
||||
- [ ] all of these
|
||||
|
||||
3. You can use anonymous functions to create event handlers
|
||||
|
||||
- [ ] true
|
||||
- [ ] false
|
20
4-typing-game/translations/.github/pre-lecture-quiz.hi.md
vendored
Normal file
20
4-typing-game/translations/.github/pre-lecture-quiz.hi.md
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
*Complete this quiz in class.*
|
||||
|
||||
1. Event-driven programming is when a user
|
||||
|
||||
- [ ] clicks on a button
|
||||
- [ ] changes a value
|
||||
- [ ] interacts with the page
|
||||
- [ ] any of the above
|
||||
|
||||
2. In procedural programming, functions are called
|
||||
|
||||
- [ ] any time
|
||||
- [ ] in a specific order
|
||||
- [ ] left to right
|
||||
|
||||
3. The universal method exposed in the DOM for registering event handlers is called
|
||||
|
||||
- [ ] addEventListener
|
||||
- [ ] addListener
|
||||
- [ ] addEvent
|
30
4-typing-game/translations/README.hi.md
Normal file
30
4-typing-game/translations/README.hi.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# Event-Driven Programming - Build a Typing Game
|
||||
|
||||
## Introduction
|
||||
|
||||
Typing is one of the most underrated skills of the developer. The ability to quickly transfer thoughts from your head to your editor allows creativity to flow freely. One of the best ways to learn is to play a game!
|
||||
|
||||
> So, let's build a typing game!
|
||||
|
||||
You're going to use the JavaScript, HTML and CSS skills you have built up so far to create a typing game. The game will present the player with a random quote (we're using [Sherlock Holmes](https://en.wikipedia.org/wiki/Sherlock_Holmes) quotes) and time how long the player takes to type it out accurately. You're going to use the JavaScript, HTML and CSS skills you have built up so far to create a typing game.
|
||||
|
||||

|
||||
|
||||
## Prerequisites
|
||||
|
||||
This lesson assumes you're familiar with the following concepts:
|
||||
|
||||
- Creating text input and button controls
|
||||
- CSS and setting styles using classes
|
||||
- JavaScript basics
|
||||
- Creating an array
|
||||
- Creating a random number
|
||||
- Getting the current time
|
||||
|
||||
## Lesson
|
||||
|
||||
[Creating a typing game by using event driven programming](./typing-game/README.md)
|
||||
|
||||
## Credits
|
||||
|
||||
Written with ♥️ by [Christopher Harrison](http://www.twitter.com/geektrainer)
|
Reference in New Issue
Block a user