康培玲
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
## hexschool note https://hackmd.io/ICFmVQe5TMKgRw7pMqzlqA?both ## 火箭隊測驗 -前端組期初考 - 請略過 JS 題目 ## 摘要 * 考試時間 週三 09:00~12:00 * 作業繳交時間:12 點前請到 discord 回報 * 可 open book,但不得與學員交流、使用 chatGPT,違者退訓 <!-- * 成績分為**及格**、**勉強通過**、**不及格**。 * JS 及格 +切版及格 = **及格** * JS 及格 + 切版不及格 = **勉強通過,需協助出題** * JS 不及格(答對 7 題以上) + 切版及格 = **勉強通過,需協助出題** * JS 不及格(6 題以下) + 切版及格 = **不及格** * JS 不及格 + 切版不及格 = **不及格** --> ## JS 題目 使用 Codepen 提交 ### 題目一 ``` =JavaScript // input 輸入 func1(2) func1(4) func1(8) // output 輸出 6 12 24 ``` ### 題目二 ``` =JavaScript // input 輸入 func2("a,b,c") func2("hi,hello") // output 輸出 // ["a","b","c"] // ["hi","hello"] ``` ### 題目三:BMI 計算機 ![](https://i.imgur.com/XkDh06x.png) ``` =JavaScript // input 輸入 bmi(cm,kg) bmi(178,20) bmi(178,65) bmi(178,77) bmi(178,89) bmi(178,100) bmi(178,200) // BMI(身高,體重) // output 輸出 "體重過輕" "正常範圍" "異常範圍" "異常範圍" "異常範圍" "異常範圍" ``` ### 題目四:手機號碼是否正確 * 是不是 08 開頭 ``` =JavaScript // input 輸入 checkPhoneNumber("0855717222") checkPhoneNumber("331") checkPhoneNumber("01839398") checkPhoneNumber("0877121333") // output 輸出 true false false true ``` ### 題目五 ```=JavaScript // input 輸入 multiplication8(3) multiplication8(5) // output 輸出 為字串格式 // multiplication(3) 8x1=8 8x2=16 8x3=24 // multiplication(5) 8x1=8 8x2=16 8x3=24 8x4=32 8x5=40 ``` ### 題目六 * 判斷帶入參數是否有陣列中有大於的值 ``` =JavaScript const numAry = [1,3,4,6,8]; // input 輸入 checkNum(0) checkNum(3) checkNum(6) checkNum(20) // output 輸出 obj 的結果 [] [1,3] [1,3,4,6] [1,3,4,6,8] ``` ### 題目七:選出從1到指定數字範圍裡面的奇數 ``` =JavaScript // input 輸入 prime(7) prime(15) // output 請以字串來顯示 "1,3,5,7" "1,3,5,7,9,11,13,15" ``` ### 題目八 請宣告一個 `obj` 函式,並 return 回傳 obj 的第一個參數 ``` obj(2).y() obj(50).y() // output 輸出 2 50 ``` ### 題目九:兩個陣列尋找相同數字 * 請找出 a 陣列裡面,若有相同數值,則篩選出來成為一個陣列 ``` =JavaScript const a = [1,3,4,6,8]; // input 輸入 checkSame([3,4,9]) checkSame([1,2,3,4,5,6,9]) // output 輸出 obj 的結果 [3,4] [1,3,4,6] ``` ### 題目 10 * 彩球共 10 顆,分別是 1~10 號 * 新規則:執行 `lotto` 函式會隨機顯示 4 個號碼 ``` =JavaScript // input 輸入 lotto() lotto() lotto() // output 下方為範例隨機選號 // 第一筆 1,3,8,9 3,2,8,10 4,5,7,9 ``` ## 切版題目(若有 x 軸,或完成度不到 50%,則不及格) 1. [UI 設計稿](https://xd.adobe.com/view/27f2c1f7-6c48-42b5-a5fa-6db8eec461a5-72a1/) 2. [圖片下載處](https://drive.google.com/drive/folders/1vO8AAHHQE1mtbYP4vwVZELIYoMNLsyBH?usp=sharing) 3. 請透過 GitHub Pages 提交,需自行發想 RWD

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully