Skip to content

Commit 75f8bd0

Browse files
authored
seo: fix external 4XXs (#38)
1 parent 40e51ec commit 75f8bd0

File tree

25 files changed

+21
-29
lines changed
  • questions
    • explain-how-jsonp-works-and-how-its-not-really-ajax
    • explain-the-concept-of-destructuring-assignment-for-objects-and-arrays
    • explain-the-concept-of-hoisting-with-regards-to-functions
    • explain-the-concept-of-tagged-templates
    • explain-the-concept-of-the-spread-operator-and-its-uses
    • explain-the-different-ways-the-this-keyword-can-be-bound
    • explain-the-same-origin-policy-with-regards-to-javascript
    • how-can-you-implement-secure-authentication-and-authorization-in-javascript-applications
    • how-can-you-optimize-dom-manipulation-for-better-performance
    • how-can-you-optimize-network-requests-for-better-performance
    • how-do-currying-and-partial-application-differ-from-each-other
    • how-do-you-organize-your-code-module-pattern-classical-inheritance
    • provide-some-examples-of-how-currying-and-partial-application-can-be-used
    • what-advantage-is-there-for-using-the-arrow-syntax-for-a-method-in-a-constructor
    • what-are-mocks-and-stubs-and-how-are-they-used-in-testing
    • what-are-promises-and-how-do-they-work
    • what-are-proxies-in-javascript-used-for
    • what-are-template-literals-and-how-are-they-used
    • what-are-the-advantages-of-using-the-spread-operator-with-arrays-and-objects
    • what-are-the-benefits-of-using-a-module-bundler
    • what-are-the-common-pitfalls-of-using-the-this-keyword
    • what-is-cross-site-scripting-xss-and-how-can-you-prevent-it
    • what-is-currying-and-how-does-it-work
    • what-is-the-command-pattern-and-how-is-it-used
    • what-is-the-spread-operator-and-how-is-it-used

25 files changed

+21
-29
lines changed

questions/explain-how-jsonp-works-and-how-its-not-really-ajax/en-US.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ handleResponse({
6969

7070
## Further reading
7171

72-
- [MDN Web Docs: JSONP](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/JSONP)
72+
- [W3Schools: JSONP](https://www.w3schools.com/js/js_json_jsonp.asp)
7373
- [Same-origin policy](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy)
7474
- [Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)

questions/explain-the-concept-of-destructuring-assignment-for-objects-and-arrays/en-US.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,4 @@ console.log(zip); // 10001
117117

118118
- [MDN Web Docs: Destructuring assignment](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment)
119119
- [JavaScript.info: Destructuring assignment](https://javascript.info/destructuring-assignment)
120-
- [FreeCodeCamp: Destructuring assignment](https://www.freecodecamp.org/news/destructuring-assignment-in-es6-30e398f21d10/)
120+
- [FreeCodeCamp: How Destructuring Works in JavaScript](https://www.freecodecamp.org/news/destructuring-in-javascript/)

questions/explain-the-concept-of-hoisting-with-regards-to-functions/en-US.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,5 @@ var arrowFunction = () => {
6565
## Further reading
6666

6767
- [MDN Web Docs on Hoisting](https://developer.mozilla.org/en-US/docs/Glossary/Hoisting)
68-
- [JavaScript.info on Hoisting](https://javascript.info/hoisting)
6968
- [MDN Web Docs on Function Declarations](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)
7069
- [MDN Web Docs on Function Expressions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/function)

questions/explain-the-concept-of-tagged-templates/en-US.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,4 @@ console.log(result); // "User input: <script>alert("XSS")</sc
9090
## Further reading
9191

9292
- [MDN Web Docs: Template literals](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#tagged_templates)
93-
- [JavaScript.info: Tagged templates](https://javascript.info/tagged-templates)
9493
- [Exploring JS: Template literals](http://exploringjs.com/es6/ch_template-literals.html#tagged-templates)

questions/explain-the-concept-of-the-spread-operator-and-its-uses/en-US.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ console.log(sum(...numbers)); // Output: 6
9393

9494
- [MDN Web Docs: Spread syntax](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax)
9595
- [JavaScript.info: Spread operator](https://javascript.info/rest-parameters-spread-operator#spread-operator)
96-
- [FreeCodeCamp: JavaScript spread operator explained](https://www.freecodecamp.org/news/javascript-spread-operator-explained/)
96+
- [FreeCodeCamp: JavaScript Spread and Rest Operators](https://www.freecodecamp.org/news/javascript-spread-and-rest-operators/)

questions/explain-the-different-ways-the-this-keyword-can-be-bound/en-US.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,5 @@ obj.greet(); // undefined, because `this` is inherited from the global scope
113113
## Further reading
114114

115115
- [MDN Web Docs: this](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this)
116-
- [JavaScript.info: This](https://javascript.info/this)
116+
- [JavaScript.info: Object methods, "this"](https://javascript.info/object-methods)
117117
- [You Don't Know JS: this & Object Prototypes](https://github.com/getify/You-Dont-Know-JS/tree/2nd-ed/this%20%26%20object%20prototypes)

questions/explain-the-same-origin-policy-with-regards-to-javascript/en-US.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ Here is a simple example demonstrating the same-origin policy:
6666
- [MDN Web Docs: Same-origin policy](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy)
6767
- [MDN Web Docs: Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)
6868
- [OWASP: Cross-Site Scripting (XSS)](https://owasp.org/www-community/attacks/xss/)
69-
- [OWASP: Cross-Site Request Forgery (CSRF)](https://owasp.org/www-community/attacks/csrf/)
69+
- [OWASP: Cross-Site Request Forgery (CSRF)](https://owasp.org/www-community/attacks/csrf)

questions/how-can-you-implement-secure-authentication-and-authorization-in-javascript-applications/en-US.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,5 +114,5 @@ app.get('/admin', checkRole('admin'), (req, res) => {
114114

115115
- [JWT.io](https://jwt.io/)
116116
- [Passport.js documentation](http://www.passportjs.org/docs/)
117-
- [OWASP Secure Coding Practices](https://owasp.org/www-project-secure-coding-practices/)
117+
- [OWASP Secure Coding Practices-Quick Reference Guide](https://owasp.org/www-project-secure-coding-practices-quick-reference-guide/)
118118
- [MDN Web Docs on HTTPS](https://developer.mozilla.org/en-US/docs/Web/Security/HTTP_strict_transport_security)

questions/how-can-you-optimize-dom-manipulation-for-better-performance/en-US.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ element.style.height = `${height + 10}px`; // Write
106106

107107
## Further reading
108108

109-
- [MDN Web Docs: DOM manipulation](https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model/Manipulating_the_DOM)
109+
- [FreeCodeCamp: DOM Manipulation in JavaScript](https://www.freecodecamp.org/news/dom-manipulation-in-javascript/)
110110
- [Google Developers: Avoid large, complex layouts and layout thrashing](https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing)
111111
- [React documentation](https://react.dev/learn)
112112
- [MDN Web Docs: Using requestAnimationFrame](https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame)

questions/how-can-you-optimize-network-requests-for-better-performance/en-US.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ Reducing the amount of data sent in each request can improve performance:
5858

5959
- [MDN Web Docs: HTTP caching](https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching)
6060
- [Google Developers: Optimizing content efficiency](https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/)
61-
- [Web.dev: Use HTTP/2](https://web.dev/http2/)
61+
- [MDN: HTTP/2](https://developer.mozilla.org/en-US/docs/Glossary/HTTP_2)
6262
- [MDN Web Docs: Service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API)
6363
- [Google Developers: Image optimization](https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/image-optimization)

0 commit comments

Comments
 (0)