mirror of
https://github.com/microsoft/Web-Dev-For-Beginners.git
synced 2025-08-29 09:30:11 +02:00
Added intial files for hindi translation
This commit is contained in:
17
7-bank-project/3-data/translations/.github/post-lecture-quiz.hi.md
vendored
Normal file
17
7-bank-project/3-data/translations/.github/post-lecture-quiz.hi.md
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
*Complete this quiz by checking one answer per question.*
|
||||
|
||||
1. In a Single-page application, the HTML is loaded once and never updated:
|
||||
|
||||
- [ ] true
|
||||
- [ ] false
|
||||
|
||||
2. Why is it important to not trust data coming from user input?
|
||||
|
||||
- [ ] because using special characters can make the UI ugly.
|
||||
- [ ] because it can contain non-sense or offensive words.
|
||||
- [ ] because it can be used as vector of attack to execute malicious scripts.
|
||||
|
||||
3. What's the API name for sending asynchronous HTTP requests to a web server?
|
||||
- [ ] `request()`
|
||||
- [ ] `fetch()`
|
||||
- [ ] `ajax()`
|
16
7-bank-project/3-data/translations/.github/pre-lecture-quiz.hi.md
vendored
Normal file
16
7-bank-project/3-data/translations/.github/pre-lecture-quiz.hi.md
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
*Complete this quiz in class.*
|
||||
|
||||
1. You can fetch data from a server synchronously in a browser
|
||||
|
||||
- [ ] true
|
||||
- [ ] false
|
||||
|
||||
2. What's the most common format used to exchange *data* on the web?
|
||||
|
||||
- [ ] HTML
|
||||
- [ ] XML
|
||||
- [ ] JSON
|
||||
|
||||
3. There's no way to prevent a web page from accessing a public server API
|
||||
- [ ] true
|
||||
- [ ] false
|
15
7-bank-project/3-data/translations/assignment.hi.md
Normal file
15
7-bank-project/3-data/translations/assignment.hi.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# Refactor and comment your code
|
||||
|
||||
## Instructions
|
||||
|
||||
As your codebase grows, it's important to refactor your code frequently to keep it readable and maintainable over time. Add comments and refactor your `app.js` to improve the code quality:
|
||||
|
||||
- Extract constants, like the server API base URL
|
||||
- Factorize similar code: for example you can create a `sendRequest()` function to regroup the code used in both `createAccount()` and `getAccount()`
|
||||
- Reorganize the code to make it easier to read, and add comments
|
||||
|
||||
## Rubric
|
||||
|
||||
| Criteria | Exemplary | Adequate | Needs Improvement |
|
||||
| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
|
||||
| | Code is commented, well-organized in different sections and easy to read. Constants are extracted and a factorized `sendRequest()` function has been created. | Code is clean but can still be improved with more comments, constant extraction or factorization. | Code is messy, not commented, constants are not extracted and code is not factorized. |
|
Reference in New Issue
Block a user