mirror of
https://github.com/microsoft/Web-Dev-For-Beginners.git
synced 2025-08-25 15:50:57 +02:00
Added intial files for hindi translation
This commit is contained in:
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 |
|
Reference in New Issue
Block a user