mirror of
https://github.com/microsoft/Web-Dev-For-Beginners.git
synced 2025-10-01 00:36:51 +02:00
Added intial files for hindi translation
This commit is contained in:
18
2-js-basics/1-data-types/translations/.github/post-lecture-quiz.hi.md
vendored
Normal file
18
2-js-basics/1-data-types/translations/.github/post-lecture-quiz.hi.md
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
*Complete this quiz after the lesson by checking one answer per question.*
|
||||
|
||||
1. Constants are the same as `let` and `var` to declare variables except
|
||||
|
||||
- [ ] Constants must be initialized
|
||||
- [ ] Constants can be altered
|
||||
- [ ] Constants can be reassigned
|
||||
|
||||
2. Numbers and ____ are JavaScript primitives that handle numeric data
|
||||
|
||||
- [ ] bigint
|
||||
- [ ] boolean
|
||||
- [ ] star
|
||||
|
||||
3. Strings can reside between both single and double quotes
|
||||
|
||||
- [ ] true
|
||||
- [ ] false
|
17
2-js-basics/1-data-types/translations/.github/pre-lecture-quiz.hi.md
vendored
Normal file
17
2-js-basics/1-data-types/translations/.github/pre-lecture-quiz.hi.md
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
*Complete this quiz in class*
|
||||
|
||||
1. Booleans are a data type you can use to test the length of a string
|
||||
|
||||
- [ ] true
|
||||
- [ ] false
|
||||
|
||||
1. The following is an operation you can perform on a string
|
||||
|
||||
- [ ] concatenation
|
||||
- [ ] appending
|
||||
- [ ] splicing
|
||||
|
||||
3. `==` and `===` are interchangeable
|
||||
|
||||
- [ ] true
|
||||
- [ ] false
|
11
2-js-basics/1-data-types/translations/assignment.hi.md
Normal file
11
2-js-basics/1-data-types/translations/assignment.hi.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# Data Types Practice
|
||||
|
||||
## Instructions
|
||||
|
||||
Imagine you are building a shopping cart. Write some documentation on the data types that you would need to complete your shopping experience. How did you arrive at your choices?
|
||||
|
||||
## Rubric
|
||||
|
||||
Criteria | Exemplary | Adequate | Needs Improvement
|
||||
--- | --- | --- | -- |
|
||||
||The six data types are listed and explored in detail, documenting their use|Four datatypes are explored|Two data types are explored|
|
12
2-js-basics/2-functions-methods/translations/.github/post-lecture-quiz.hi.md
vendored
Normal file
12
2-js-basics/2-functions-methods/translations/.github/post-lecture-quiz.hi.md
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
*Complete this quiz by checking one answer per question.*
|
||||
|
||||
1. Arguments must be provided for all parameters in a function
|
||||
|
||||
- [ ] true
|
||||
- [ ] false
|
||||
|
||||
2. What does a default value do?
|
||||
|
||||
- [ ] Sets a correct value
|
||||
- [ ] Gives a starter value for a parameters so your code still behaves if you omit an argument for it
|
||||
- [ ] Has no utility
|
12
2-js-basics/2-functions-methods/translations/.github/pre-lecture-quiz.hi.md
vendored
Normal file
12
2-js-basics/2-functions-methods/translations/.github/pre-lecture-quiz.hi.md
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
*Complete this quiz in class*
|
||||
|
||||
1. What's an argument?
|
||||
|
||||
- [ ] It's something you declare in the function definition
|
||||
- [ ] It's something you pass into a function at invocation time
|
||||
- [ ] It's something you have with people you know
|
||||
|
||||
2. True or false: a function must return something
|
||||
|
||||
- [ ] true
|
||||
- [ ] false
|
@@ -0,0 +1,13 @@
|
||||
# Fun with Functions
|
||||
|
||||
## Instructions
|
||||
|
||||
Create different functions, both functions that return something and functions that don't return anything.
|
||||
|
||||
See if you can create a function that has a mix of parameters and parameters with default values.
|
||||
|
||||
## Rubric
|
||||
|
||||
| Criteria | Exemplary | Adequate | Needs Improvement |
|
||||
| -------- | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ----------------- |
|
||||
| | Solution is offered with two or more well-performing functions with diverse parameters | Working solution is offered with one function and few parameters | Solution has bugs |
|
12
2-js-basics/3-making-decisions/translations/.github/post-lecture-quiz.hi.md
vendored
Normal file
12
2-js-basics/3-making-decisions/translations/.github/post-lecture-quiz.hi.md
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
*Complete this quiz by checking one answer per question.*
|
||||
|
||||
1. What would the following code return: `'1' == 1`
|
||||
|
||||
- [ ] true
|
||||
- [ ] false
|
||||
|
||||
2. Choose the correct operator to express _or_ logic
|
||||
|
||||
- [ ] `a | b`
|
||||
- [ ] `a || b`
|
||||
- [ ] `a or b`
|
13
2-js-basics/3-making-decisions/translations/.github/pre-lecture-quiz.hi.md
vendored
Normal file
13
2-js-basics/3-making-decisions/translations/.github/pre-lecture-quiz.hi.md
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
*Complete this quiz in class*
|
||||
|
||||
1. The following operator `==` is called
|
||||
|
||||
- [ ] Equality
|
||||
- [ ] Strict equality
|
||||
- [ ] Assignment
|
||||
|
||||
2. A comparison in JavaScript returns what type?
|
||||
|
||||
- [ ] boolean
|
||||
- [ ] null
|
||||
- [ ] string
|
40
2-js-basics/3-making-decisions/translations/assignment.hi.md
Normal file
40
2-js-basics/3-making-decisions/translations/assignment.hi.md
Normal file
@@ -0,0 +1,40 @@
|
||||
# Operators
|
||||
|
||||
## Instructions
|
||||
|
||||
Play around with operators. Here's a suggestion for a program you can implement:
|
||||
|
||||
You have a set of students from two different grading systems.
|
||||
|
||||
### First grading system
|
||||
|
||||
One grading system is defined as grades being from 1-5 where 3 and above means you pass the course.
|
||||
|
||||
### Second grading system
|
||||
|
||||
The other grade system has the following grades `A, A-, B, B-, C, C-` where `A` is the top grade and `C` is the lowest passing grade.
|
||||
|
||||
### The task
|
||||
|
||||
Given the following array `allStudents` representing all students and their grades, construct a new array `studentsWhoPass` containing all students who pass.
|
||||
|
||||
> TIP, use a for-loop and if...else and comparison operators:
|
||||
|
||||
```javascript
|
||||
let allStudents = [
|
||||
'A',
|
||||
'B-'
|
||||
1,
|
||||
4
|
||||
5,
|
||||
2
|
||||
]
|
||||
|
||||
let studentsWhoPass = [];
|
||||
```
|
||||
|
||||
## Rubric
|
||||
|
||||
| Criteria | Exemplary | Adequate | Needs Improvement |
|
||||
| -------- | ------------------------------ | ----------------------------- | ------------------------------- |
|
||||
| | Complete solution is presented | Partial solution is presented | Solution with bugs is presented |
|
18
2-js-basics/4-arrays-loops/translations/.github/post-lecture-quiz.hi.md
vendored
Normal file
18
2-js-basics/4-arrays-loops/translations/.github/post-lecture-quiz.hi.md
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
*Complete this quiz by checking one answer per question.*
|
||||
|
||||
1. What part of a for-loop would you need to modify to increment its iteration by 5
|
||||
|
||||
- [ ] condition
|
||||
- [ ] counter
|
||||
- [ ] iteration-expression
|
||||
|
||||
2. What's the difference between a `while` and a `for-loop`
|
||||
|
||||
- [ ] A `for-loop` has a counter and iteration-expression, where `while` only has a condition
|
||||
- [ ] A `while` has a counter and iteration-expression where `for-loop` only has a condition
|
||||
- [ ] They are the same, just an alias for one another
|
||||
|
||||
3. Given the code `for (let i=1; i < 5; i++)`, how many iterations will it perform?
|
||||
|
||||
- [ ] 5
|
||||
- [ ] 4
|
13
2-js-basics/4-arrays-loops/translations/.github/pre-lecture-quiz.hi.md
vendored
Normal file
13
2-js-basics/4-arrays-loops/translations/.github/pre-lecture-quiz.hi.md
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
*Complete this quiz in class*
|
||||
|
||||
1. To refer to specific item in an array, you would use a
|
||||
|
||||
- [ ] square bracket `[]`
|
||||
- [ ] index
|
||||
- [ ] curly braces `{}`
|
||||
|
||||
2. How do you get the number of items in an array
|
||||
|
||||
- [ ] The `len(array)` method
|
||||
- [ ] The property `size` on the array
|
||||
- [ ] The `length` property on the array
|
13
2-js-basics/4-arrays-loops/translations/assignment.hi.md
Normal file
13
2-js-basics/4-arrays-loops/translations/assignment.hi.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# Loop an Array
|
||||
|
||||
## Instructions
|
||||
|
||||
Create a program that lists every 3rd number between 1-20 and prints it to the console.
|
||||
|
||||
> TIP: use a for-loop and modify the iteration-expression
|
||||
|
||||
## Rubric
|
||||
|
||||
| Criteria | Exemplary | Adequate | Needs Improvement |
|
||||
| -------- | --------------------------------------- | ------------------------ | ------------------------------ |
|
||||
| | Program runs correctly and is commented | Program is not commented | Program is incomplete or buggy |
|
14
2-js-basics/translations/README.hi.md
Normal file
14
2-js-basics/translations/README.hi.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# Introduction to JavaScript
|
||||
|
||||
JavaScript is the language of the web. In these four lessons, you'll learn its basics.
|
||||
|
||||
### Topics
|
||||
|
||||
1. [Variables and Data Types](1-data-types/README.md)
|
||||
2. [Functions and Methods](2-functions-methods/README.md)
|
||||
3. [Making Decisions with JavaScript](3-making-decisions/README.md)
|
||||
4. [Arrays and Loops](4-arrays-loops/README.md)
|
||||
|
||||
### Credits
|
||||
|
||||
These lessons were written with ♥️ by [Jasmine Greenaway](https://twitter.com/paladique), [Christopher Harrison](https://twitter.com/geektrainer) and [Chris Noring](https://twitter.com/chris_noring)
|
Reference in New Issue
Block a user