Skip to content

Commit 1dffd1b

Browse files
qns: fix broken links in the questions content (#54)
Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com>
1 parent 1525e97 commit 1dffd1b

8 files changed

Lines changed: 10 additions & 12 deletions

File tree

  • questions
    • what-are-mocks-and-stubs-and-how-are-they-used-in-testing
    • what-are-some-tools-that-can-be-used-to-measure-and-analyze-javascript-performance
    • what-are-template-literals-and-how-are-they-used
    • what-is-event-loop-what-is-the-difference-between-call-stack-and-task-queue
    • what-is-the-difference-between-settimeout-setimmediate-and-processnexttick
    • what-is-the-module-pattern-and-how-does-it-help-with-encapsulation
    • why-is-it-in-general-a-good-idea-to-leave-the-global-scope-of-a-website-as-is-and-never-touch-it

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6322,7 +6322,7 @@ Caching is a technique used to store copies of files or data in a temporary stor
63226322

63236323
<!-- Update here: /questions/what-are-some-tools-that-can-be-used-to-measure-and-analyze-javascript-performance/en-US.mdx -->
63246324

6325-
To measure and analyze JavaScript performance, you can use tools like Chrome DevTools, Lighthouse, WebPageTest, and JSPerf. Chrome DevTools provides a Performance panel for profiling, Lighthouse offers audits for performance metrics, WebPageTest allows for detailed performance testing, and JSPerf helps in comparing the performance of different JavaScript snippets.
6325+
To measure and analyze JavaScript performance, you can use tools like Chrome DevTools, Lighthouse, WebPageTest, and JSBench. Chrome DevTools provides a Performance panel for profiling, Lighthouse offers audits for performance metrics, WebPageTest allows for detailed performance testing, and JSBench helps in comparing the performance of different JavaScript snippets.
63266326

63276327
<!-- Update here: /questions/what-are-some-tools-that-can-be-used-to-measure-and-analyze-javascript-performance/en-US.mdx -->
63286328

‎questions/what-are-mocks-and-stubs-and-how-are-they-used-in-testing/en-US.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ logUserDataMock.verify(); // Verifies that the log method was called once with t
4949

5050
## Further reading
5151

52-
- [Sinon.js documentation](https://sinonjs.org/releases/latest/)
52+
- [Sinon.js documentation](https://sinonjs.org/)
5353
- [Mocks Aren't Stubs](https://martinfowler.com/articles/mocksArentStubs.html) by Martin Fowler
5454
- [Sinon Tutorial: JavaScript Testing with Mocks, Spies & Stubs](https://www.sitepoint.com/sinon-tutorial-javascript-testing-mocks-spies-stubs/) on SitePoint

‎questions/what-are-some-tools-that-can-be-used-to-measure-and-analyze-javascript-performance/en-US.mdx‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: What are some tools that can be used to measure and analyze JavaScript pe
44

55
## TL;DR
66

7-
To measure and analyze JavaScript performance, you can use tools like Chrome DevTools, Lighthouse, WebPageTest, and JSPerf. Chrome DevTools provides a Performance panel for profiling, Lighthouse offers audits for performance metrics, WebPageTest allows for detailed performance testing, and JSPerf helps in comparing the performance of different JavaScript snippets.
7+
To measure and analyze JavaScript performance, you can use tools like Chrome DevTools, Lighthouse, WebPageTest, and JSBench. Chrome DevTools provides a Performance panel for profiling, Lighthouse offers audits for performance metrics, WebPageTest allows for detailed performance testing, and JSBench helps in comparing the performance of different JavaScript snippets.
88

99
---
1010

@@ -40,11 +40,11 @@ WebPageTest is a free online tool that provides detailed performance testing of
4040
- Click the "Start Test" button
4141
- Review the detailed performance report, including metrics like load time, time to first byte, and more
4242

43-
### JSPerf
43+
### JSBench
4444

45-
JSPerf is a tool for comparing the performance of different JavaScript snippets. It allows you to create and run benchmarks to see which code performs better.
45+
JSBench is a tool for comparing the performance of different JavaScript snippets. It allows you to create and run benchmarks to see which code performs better.
4646

47-
- Go to [JSPerf](https://jsperf.com/)
47+
- Go to [JSBench](https://jsbench.me/)
4848
- Create a new test case by entering different JavaScript snippets
4949
- Run the benchmark to compare the performance of the snippets
5050
- Review the results to see which snippet performs better
@@ -54,4 +54,4 @@ JSPerf is a tool for comparing the performance of different JavaScript snippets.
5454
- [Chrome DevTools Performance Panel](https://developer.chrome.com/docs/devtools/evaluate-performance/)
5555
- [Lighthouse](https://developers.google.com/web/tools/lighthouse)
5656
- [WebPageTest](https://www.webpagetest.org/)
57-
- [JSPerf](https://jsperf.com/)
57+
- [JSBench](https://jsbench.me/)

‎questions/what-are-template-literals-and-how-are-they-used/en-US.mdx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,3 @@ console.log(nestedTemplate);
9191
## Further reading
9292

9393
- [MDN Web Docs: Template literals](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals)
94-
- [Qwirey.com: Template literals](https://qwirey.com/technology/es6-features.html#qwp-fold-templateliterals)

‎questions/what-is-event-loop-what-is-the-difference-between-call-stack-and-task-queue/en-US.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,6 @@ Several statements about the event loop appear frequently in explanations and in
374374
- [HTML Living Standard: Event loops](https://html.spec.whatwg.org/multipage/webappapis.html#event-loops)
375375
- [The Node.js Event Loop](https://nodejs.org/en/learn/asynchronous-work/event-loop-timers-and-nexttick)
376376
- [Event loop: microtasks and macrotasks](https://javascript.info/event-loop)
377-
- ["JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue" by Lydia Hallie](https://www.lydiahallie.com/blog/event-loop)
377+
- ["JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue" by Lydia Hallie](https://dev.to/lydiahallie/javascript-visualized-event-loop-3dif)
378378
- ["What the heck is the event loop anyway?" by Philip Roberts](https://2014.jsconf.eu/speakers/philip-roberts-what-the-heck-is-the-event-loop-anyway.html)
379379
- ["In The Loop" by Jake Archibald](https://www.youtube.com/watch?v=cCOL7MC4Pl0)

‎questions/what-is-the-difference-between-settimeout-setimmediate-and-processnexttick/en-US.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ setImmediate or setTimeout (order may vary)
7070

7171
## Further reading
7272

73-
- [Node.js Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/)
73+
- [Node.js Event Loop](https://nodejs.org/learn/asynchronous-work/event-loop-timers-and-nexttick)
7474
- [MDN Web Docs: setTimeout()](https://developer.mozilla.org/en-US/docs/Web/API/setTimeout)
7575
- [Node.js Documentation: setImmediate()](https://nodejs.org/api/timers.html#timers_setimmediate_callback_args)
7676
- [Node.js Documentation: process.nextTick()](https://nodejs.org/api/process.html#process_process_nexttick_callback_args)

‎questions/what-is-the-module-pattern-and-how-does-it-help-with-encapsulation/en-US.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,6 @@ The Module pattern is a powerful tool in JavaScript for creating self-contained
8585

8686
## Further reading
8787

88-
- [JavaScript Module Pattern: In-Depth](https://toddmotto.com/mastering-the-module-pattern/)
88+
- [JavaScript Module Pattern: In-Depth](https://ultimatecourses.com/blog/mastering-the-module-pattern)
8989
- [MDN Web Docs: Closures](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures)
9090
- [Addy Osmani's Learning JavaScript Design Patterns](https://addyosmani.com/resources/essentialjsdesignpatterns/book/#modulepatternjavascript)

‎questions/why-is-it-in-general-a-good-idea-to-leave-the-global-scope-of-a-website-as-is-and-never-touch-it/en-US.mdx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,3 @@ In this example, `count` is not accessible in the global scope. It can only be a
112112
- [JavaScript modules - MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules)
113113
- [Modules, introduction](https://javascript.info/modules-intro)
114114
- [JS: don't touch the global scope](https://lucybain.com/blog/2014/js-dont-touch-global-scope/)
115-
- [Variables: Scopes, Environments, and Closures](https://exploringjs.com/es5/ch16.html)

0 commit comments

Comments
 (0)