H. programmers. I am a first year student of KNURE. We are now starting to learn Javascript. But since I had never done this before, I’m a little behind. I can't understand how function () works. And how to draw pictures with symbols. Thank you in advance.
|
1 answer
Pictures of characters to draw easily.
ASCII table
Using functions - a function is a subroutine. The simplest option: If you encounter a piece of code many times, you can write it once inside a function, and then simply call this function where it is required.
Syntax:
function myFunc(parameters){ //код подпрограммы } function - the keyword myFunc - the name of the function parameters - the variables that you want to pass to the function as parameters (copy their values). If several - separated by commas. If zero, empty brackets.
Call:
myFunc(someVar); |