Skip to content

Commit

Permalink
add: deno quizzes
Browse files Browse the repository at this point in the history
  • Loading branch information
codediodeio committed Nov 9, 2024
1 parent 7d43677 commit 3f2cd68
Show file tree
Hide file tree
Showing 17 changed files with 44 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/img.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { readdirSync, rmSync } from 'fs';
import { exec } from 'child_process';

// npx @squoosh/cli --webp auto ./4.jpg
const dir = './content/courses/linux/img/prizes/';
const dir = './content/courses/deno/img/prizes/';
// const dir = './static/img/testimonial/';
const files = readdirSync(dir)
files.forEach(file => {
Expand Down
7 changes: 6 additions & 1 deletion content/courses/deno/basics-deno-internals.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ vimeo: 1027305709
emoji: 🦕
video_length: 3:25
chapter_start: Welcome to Deno
free: true
quiz: true
---

<quiz-modal options="crankshaft:combustion chamber:flywheel:just-in-time compiler" answer="just-in-time compiler" prize="0">
<h5>Which is a feature of Google's V8 engine that make JavaScript fast?</h5>
</quiz-modal>


## How Deno Works

Deno is built with the V8 JavaScript engine (the same engine powering Chrome) and uses Rust to implement browser standard APIs, providing both performance and safety. Internally, Deno manages JavaScript and TypeScript code execution via an event loop, similar to Node.js, but it emphasizes modern language features and security by default.
Expand Down
4 changes: 4 additions & 0 deletions content/courses/deno/basics-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ draft: false
vimeo: 1027305856
emoji: 📑
video_length: 1:26
quiz: true
---

<quiz-modal options="--html:--xml:--json" answer="--xml" prize="6">
<h5>Which format is NOT supported by Deno doc? </h5>
</quiz-modal>


## Generate Documentation for TS Code
Expand Down
6 changes: 6 additions & 0 deletions content/courses/deno/basics-hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ vimeo: 1027305898
emoji: 🦖
video_length: 3:47
free: true
quiz: true
---

<quiz-modal options="deno upgrade:deno up:nvm:deno version manager" answer="deno upgrade" prize="1">
<h5>How do you update your machine with the lastest version of Deno?</h5>
</quiz-modal>


## Course Resources

- [Deno Installation and Docs](https://docs.deno.com/runtime/getting_started/installation/)
Expand Down
6 changes: 6 additions & 0 deletions content/courses/deno/basics-meta-main.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ vimeo: 1027305878
emoji: 🚛
video_length: 2:04
free: true
quiz: true
---

<quiz-modal options="import.meta.url:import.meta.main:import.meta.dirname:import.meta.resolve" answer="import.meta.dirname" prize="4">
<h5>How would access absolute path of the directory containing the current module?</h5>
</quiz-modal>


## Meta Main Example

{{< file "ts" "main.ts" >}}
Expand Down
5 changes: 5 additions & 0 deletions content/courses/deno/basics-modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ draft: false
vimeo: 1027462441
emoji: 📦
video_length: 4:58
quiz: true
---

<quiz-modal options="NPM:node_modules:JSR:silk road" answer="JSR" prize="5">
<h5>What is the preferred package registry for Deno projects?</h5>
</quiz-modal>


## Create your Own ES Modules

Expand Down
6 changes: 6 additions & 0 deletions content/courses/deno/basics-security.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ draft: false
vimeo: 1027462507
emoji: 🤐
video_length: 2:29
quiz: true
---

<quiz-modal options="--exclude=./secrets:--deny-read=./secrets:--deny-write=./secrets:./secrets=false" answer="--deny-write=./secrets" prize="7">
<h5>How would you exclude the "/secrets" directory from being written to on your server?</h5>
</quiz-modal>



## Basic Security

Expand Down
6 changes: 6 additions & 0 deletions content/courses/deno/basics-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ draft: false
vimeo: 1027462516
emoji: 🔬
video_length: 5:18
quiz: true
---

<quiz-modal options="true:false" answer="false" prize="3">
<h5>In Deno, you can only write tests in a dedicated file like, main_test.ts</h5>
</quiz-modal>


## Deno Testing Examples

{{< file "ts" "main_test.ts" >}}
Expand Down
4 changes: 4 additions & 0 deletions content/courses/deno/basics-typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ vimeo: 1027462404
emoji: 💎
video_length: 9:04
free: true
quiz: true
---

<quiz-modal options="--ts:--force:--check:--tsc" answer="--check" prize="2">
<h5>Which flag is used to force type checking in Deno?</h5>
</quiz-modal>


## Basic Type Checking
Expand Down
Binary file added content/courses/deno/img/prizes/0.webp
Binary file not shown.
Binary file added content/courses/deno/img/prizes/1.webp
Binary file not shown.
Binary file added content/courses/deno/img/prizes/2.webp
Binary file not shown.
Binary file added content/courses/deno/img/prizes/3.webp
Binary file not shown.
Binary file added content/courses/deno/img/prizes/4.webp
Binary file not shown.
Binary file added content/courses/deno/img/prizes/5.webp
Binary file not shown.
Binary file added content/courses/deno/img/prizes/6.webp
Binary file not shown.
Binary file added content/courses/deno/img/prizes/7.webp
Binary file not shown.

0 comments on commit 3f2cd68

Please sign in to comment.