Added intial files for hindi translation

This commit is contained in:
Sanjay
2020-12-28 00:01:05 +05:30
parent e673998d7e
commit cc833ce34f
82 changed files with 1794 additions and 0 deletions

View 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()`

View 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

View 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. |