# 第四十二關 new Date() 與字串處理 ## 問題 請用你學會的語法,取出今日時間,並依序組出以下字串 假設今天時間為 8/5,則需透過 new Date() 處理後,印出以下資料 ``` // 目前時間是 2020/8/5 14:20 // 2020/08/05 // 2020-08-05 // 今天是禮拜五 // 今天是八月五日,時間為 14:20 ``` - [JS 筆記 - 用 JavaScript 寫一個電子鐘](https://hsuchihting.github.io/javascript/20200807/92265520/)
×
Sign in
Email
Password
Forgot password
or
Sign in via Google
Sign in via Facebook
Sign in via X(Twitter)
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
Continue with a different method
New to HackMD?
Sign up
By signing in, you agree to our
terms of service
.