click below
click below
Normal Size Small Size show me how
Vidcode Module 6-5
| Question | Answer |
|---|---|
| strings | bits of text. |
| user input | code that requires input. It can be text or keyboard. |
| event listener | a piece of code that listens for something to happen, a button to be clicked or a key pressed. |
| concatenation | adding two or more strings together. |
| What does this code do? var myInput = textInput(40, 40); myInput.size = 30; myInput.color = "#EAEEF1"; | The 1st line of code takes text input. The 2nd line is the size of the text you enter. The 3rd line is the color of the text input. |
| string methods | string methods are different JavaScript built-in functions. Some examples are string.length which tells you how long a string is, string.ends which tells the last character in a string. |