1
- The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
If you are undoing an edit that is …
You are not logged in.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
If you are undoing an edit that is not vandalism, explain the reason in the edit summary rather than using only the default message.
Line 13: |
Line 13: |
|
Parameters ([[values]] that are sent to the paragraph) follow the return type and the word "{{code|keyword|using}}" and are separated from each other with "{{code|keyword|and}}". |
|
Parameters ([[values]] that are sent to the paragraph) follow the return type and the word "{{code|keyword|using}}" and are separated from each other with "{{code|keyword|and}}". |
|
|
|
|
− |
* {{codeblock|{{code|keyword|I learned}}{{tag|whitespace}}{{tag|paragraph|paragraph name}}{{tag|whitespace}}{{tag|keyword|using}}{{tag|whitespace}}{{tag|type}}{{tag|whitespace}}{{tag|variable}}{{tag|punctuation}}}} |
+ |
* {{codeblock|{{code|keyword|I learned}}{{tag|whitespace}}{{tag|paragraph|paragraph name}}{{tag|whitespace}}{{tag|keyword|using}}{{tag|whitespace}}{{tag|type}}{{tag|whitespace}}{{tag|value}}{{tag|punctuation}}}} |
− |
* {{codeblock|{{code|keyword|<strong>Today</strong> I learned}}{{tag|whitespace}}{{tag|paragraph|paragraph name}}{{tag|whitespace}}{{tag|keyword|using}}{{tag|whitespace}}{{tag|type}}{{tag|whitespace}}{{tag|variable}}{{tag|punctuation}}}} |
+ |
* {{codeblock|{{code|keyword|<strong>Today</strong> I learned}}{{tag|whitespace}}{{tag|paragraph|paragraph name}}{{tag|whitespace}}{{tag|keyword|using}}{{tag|whitespace}}{{tag|type}}{{tag|punctuation}}}} |
|
|
|
|
|
=== Examples === |
|
=== Examples === |
|
Plain declaration (no return, no parameters): |
|
Plain declaration (no return, no parameters): |
− |
: {{codeblock|{{code|keyword|I learned}}{{code|whitespace| }}{{code|paragraph|how to greet you}}{{code|punctuation|.}}}} |
+ |
: {{codeblock|{{code|keyword|I learned}}{{code|whitespace| }}{{code|paragraph|how to multiply}}{{code|punctuation|.}}}} |
|
|
|
|
|
Declaration for a paragraph which returns a [[number]]: |
|
Declaration for a paragraph which returns a [[number]]: |
− |
: {{codeblock|{{code|keyword|I learned}}{{code|whitespace| }}{{code|paragraph|to randomize}}{{code|whitespace| }}{{code|keyword|with}}{{code|whitespace| }}{{code|type|a number}}{{code|punctuation|.}}}} |
+ |
: {{codeblock|{{code|keyword|I learned}}{{code|whitespace| }}{{code|paragraph|how to multiply}}{{code|whitespace| }}{{code|keyword|with}}{{code|whitespace| }}{{code|type|a number}}{{code|punctuation|.}}}} |
|
|
|
|
|
Declaration for a paragraph which takes in an [[arrays|array]] of numbers called "{{code|variable|Fibonacci}}": |
|
Declaration for a paragraph which takes in an [[arrays|array]] of numbers called "{{code|variable|Fibonacci}}": |