`學期一` 【學期 1 選修挑戰】 1. Modify the following code and use loops to print out the following: ``` const maxLength = 1; for (...){ … } ``` ``` maxLength = 1 Output: * maxLength = 3 Output: * ** *** maxLength = 5 Output: * ** *** **** ***** ``` 2. Change the code for question 1 and use loops to print out the following: ``` const maxLength = 1; for (...){ … } ``` ``` maxLength = 1 Output: * maxLength = 3 Output: * ** *** ** * maxLength = 4 Output: * ** *** **** *** ** * ``` 3. Change the code for question 2 and use loops to print out the following: ``` const maxLength = 1; for (...){ … } ``` ``` maxLength = 1 Output: * maxLength = 2 Output: * * * * maxLength = 3 Output: * * * * * * * * * maxLength = 4 Output: * * * * * * * * * * * * * * * * ```
×
Sign in
Email
Password
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