Question
Updated on
28 Sep 2022
- Spanish (Colombia)
- Spanish (Mexico)
-
English (US)
-
Spanish (Mexico)
-
Spanish (Spain)
Question about English (US)
could you check the grammar here? everything but the codes
JavaScript practice
I’ve been studying web programming for a while around 2 years but those years weren’t in a row, I practice more casual because my main target is English now for when I will be more than 18 (I’m 17) I can maybe get a job in another country and also because I like it English and I want to watch English youtubers and understood them no problem, though I am not able to understand completely yet is way easier understand than before.
I want to write this to explain a few codes and to know how is my explanation in grammar.
First, if you tap on any webpage this sequence (ctrl + shift + c) will appear the development section you must click up where says console.
I’m going to show you 3 codes, the first it’s the most basic, this is “alert” if you write in the console:
alert("something");
with the quotation marks, the web page will say to the user something that you wrote into the quotation marks for example:
alert("hi, what are you doing");
the second one is “Math.floor(Math.random() * (max - min) + min)” this is more a chunk of code but this is so common to find those together, in short:
Math.floor = it round off numbers
Math.random = random number from 0 to 1;
The down below aren’t codes is rather a structure
Max = you write the max number from the range
Min = you write the min number from the range
Example :
Math.floor(Math.random() * (10 - 1) + 1) = 1-10 random numbers
The third one is “function ()” and “var” in short those are:
var (name) = (value) it’s for saving information (one value for more than 1 is array[] but that’s more advance)
for example:
var number = 4;
then you make the var write it without the value I mean (on the console you write “number” and that’s it will appear the value below)
function name’s function() {
content
}
= it uses for calling code or activates easier the code inside, you can call functions with the number and next “()” the name the function is “number_generator” you can call it to write number_generator(); and that’s it.
Practice example:
////////////
function name() {
var number = Math.floor(Math.random() * (10 - 1) + 1);
alert("your number is: " + number);
}
name();
//////////////
every time different number.
Thanks for reading
could you check the grammar here? everything but the codes
JavaScript practice
I’ve been studying web programming for a while around 2 years but those years weren’t in a row, I practice more casual because my main target is English now for when I will be more than 18 (I’m 17) I can maybe get a job in another country and also because I like it English and I want to watch English youtubers and understood them no problem, though I am not able to understand completely yet is way easier understand than before.
I want to write this to explain a few codes and to know how is my explanation in grammar.
First, if you tap on any webpage this sequence (ctrl + shift + c) will appear the development section you must click up where says console.
I’m going to show you 3 codes, the first it’s the most basic, this is “alert” if you write in the console:
alert("something");
with the quotation marks, the web page will say to the user something that you wrote into the quotation marks for example:
alert("hi, what are you doing");
the second one is “Math.floor(Math.random() * (max - min) + min)” this is more a chunk of code but this is so common to find those together, in short:
Math.floor = it round off numbers
Math.random = random number from 0 to 1;
The down below aren’t codes is rather a structure
Max = you write the max number from the range
Min = you write the min number from the range
Example :
Math.floor(Math.random() * (10 - 1) + 1) = 1-10 random numbers
The third one is “function ()” and “var” in short those are:
var (name) = (value) it’s for saving information (one value for more than 1 is array[] but that’s more advance)
for example:
var number = 4;
then you make the var write it without the value I mean (on the console you write “number” and that’s it will appear the value below)
function name’s function() {
content
}
= it uses for calling code or activates easier the code inside, you can call functions with the number and next “()” the name the function is “number_generator” you can call it to write number_generator(); and that’s it.
Practice example:
////////////
function name() {
var number = Math.floor(Math.random() * (10 - 1) + 1);
alert("your number is: " + number);
}
name();
//////////////
every time different number.
Thanks for reading
JavaScript practice
I’ve been studying web programming for a while around 2 years but those years weren’t in a row, I practice more casual because my main target is English now for when I will be more than 18 (I’m 17) I can maybe get a job in another country and also because I like it English and I want to watch English youtubers and understood them no problem, though I am not able to understand completely yet is way easier understand than before.
I want to write this to explain a few codes and to know how is my explanation in grammar.
First, if you tap on any webpage this sequence (ctrl + shift + c) will appear the development section you must click up where says console.
I’m going to show you 3 codes, the first it’s the most basic, this is “alert” if you write in the console:
alert("something");
with the quotation marks, the web page will say to the user something that you wrote into the quotation marks for example:
alert("hi, what are you doing");
the second one is “Math.floor(Math.random() * (max - min) + min)” this is more a chunk of code but this is so common to find those together, in short:
Math.floor = it round off numbers
Math.random = random number from 0 to 1;
The down below aren’t codes is rather a structure
Max = you write the max number from the range
Min = you write the min number from the range
Example :
Math.floor(Math.random() * (10 - 1) + 1) = 1-10 random numbers
The third one is “function ()” and “var” in short those are:
var (name) = (value) it’s for saving information (one value for more than 1 is array[] but that’s more advance)
for example:
var number = 4;
then you make the var write it without the value I mean (on the console you write “number” and that’s it will appear the value below)
function name’s function() {
content
}
= it uses for calling code or activates easier the code inside, you can call functions with the number and next “()” the name the function is “number_generator” you can call it to write number_generator(); and that’s it.
Practice example:
////////////
function name() {
var number = Math.floor(Math.random() * (10 - 1) + 1);
alert("your number is: " + number);
}
name();
//////////////
every time different number.
Thanks for reading
thanks in advance
Answers
24 Oct 2022
Featured answer
- English (US)
Here is my edit:
~
JavaScript practice
I’ve been studying web programming for a while -- around 2 years -- but those years weren’t consecutive. Recently, I've studied more casually because now my main objective is learning English. I'm trying to learn English in order to get a job in another country after I turn 18 (I’m 17), and also because I like the language. I want to watch English YouTubers and understand them well. Although I am not yet able to understand English completely, it is way easier than before.
I want to write this to explain a few JavaScript commands, and to know whether my explanations are grammatically correct.
First, if you tap the sequence of keys (ctrl + shift + c) on any webpage, the development section will appear. Then you have to click up where it says "console."
I’m going to show you 3 commands. The first one is "alert" and it is the most basic. If you write in the console:
alert("something");
with the quotation marks, the web page will say to the user the thing that you wrote into the quotation marks. For example:
alert("hi, what are you doing");
The second one is “Math.floor(Math.random() * (max - min) + min)”. This is more a chunk of code but it is very common to find these together. In short:
Math.floor = it rounds off numbers
Math.random = random number from 0 to 1;
The words below aren’t commands but rather are placeholders.
Max = you write the max number that you want in the output
Min = you write the min number that you want in the output
Example :
Math.floor(Math.random() * (10 - 1) + 1) = 1-10 random numbers
The third set of commands is “function ()” and “var”. In short, these are:
var (name) = (value) -- this is for saving information (one value for more than a single number is array[] but that’s more advanced)
for example:
var number = 4;
Then you can reference the value using the variable name (on the console you write “number” and the number 4 will appear below)
Here is what function() looks like. In this case the name of the function is "function" but you can name it anything you want.
function() {
content
}
Function() is used for calling code, which is a way to easily rerun the code inside the function. You can call functions using their name followed by “()”. In the next example, the name of the function is “number_generator”. You can call it by writing number_generator();
That's all!
Practice example:
////////////
function name() {
var number = Math.floor(Math.random() * (10 - 1) + 1);
alert("your number is: " + number);
}
name();
//////////////
This function will return a different number every time.
Thanks for reading!
Read more comments
- English (US)
Here is my edit:
~
JavaScript practice
I’ve been studying web programming for a while -- around 2 years -- but those years weren’t consecutive. Recently, I've studied more casually because now my main objective is learning English. I'm trying to learn English in order to get a job in another country after I turn 18 (I’m 17), and also because I like the language. I want to watch English YouTubers and understand them well. Although I am not yet able to understand English completely, it is way easier than before.
I want to write this to explain a few JavaScript commands, and to know whether my explanations are grammatically correct.
First, if you tap the sequence of keys (ctrl + shift + c) on any webpage, the development section will appear. Then you have to click up where it says "console."
I’m going to show you 3 commands. The first one is "alert" and it is the most basic. If you write in the console:
alert("something");
with the quotation marks, the web page will say to the user the thing that you wrote into the quotation marks. For example:
alert("hi, what are you doing");
The second one is “Math.floor(Math.random() * (max - min) + min)”. This is more a chunk of code but it is very common to find these together. In short:
Math.floor = it rounds off numbers
Math.random = random number from 0 to 1;
The words below aren’t commands but rather are placeholders.
Max = you write the max number that you want in the output
Min = you write the min number that you want in the output
Example :
Math.floor(Math.random() * (10 - 1) + 1) = 1-10 random numbers
The third set of commands is “function ()” and “var”. In short, these are:
var (name) = (value) -- this is for saving information (one value for more than a single number is array[] but that’s more advanced)
for example:
var number = 4;
Then you can reference the value using the variable name (on the console you write “number” and the number 4 will appear below)
Here is what function() looks like. In this case the name of the function is "function" but you can name it anything you want.
function() {
content
}
Function() is used for calling code, which is a way to easily rerun the code inside the function. You can call functions using their name followed by “()”. In the next example, the name of the function is “number_generator”. You can call it by writing number_generator();
That's all!
Practice example:
////////////
function name() {
var number = Math.floor(Math.random() * (10 - 1) + 1);
alert("your number is: " + number);
}
name();
//////////////
This function will return a different number every time.
Thanks for reading!
- Spanish (Colombia)
- Spanish (Mexico)
@rogernetherton thanks, I'd forgotten this post and while I was checking. I realized. I've fixed a few of my former mistakes. ✍

[News] Hey you! The one learning a language!
Do you know how to improve your language skills❓ All you have to do is have your writing corrected by a native speaker!
With HiNative, you can have your writing corrected by native speakers for free ✍️✨.
With HiNative, you can have your writing corrected by native speakers for free ✍️✨.
Sign up
Recommended Questions
- I was asked a question from my friend like, "what's this photo suppose to be?" in two separate...
- 日本語を人に教えてあげるときに 丁寧に話す時 XXXXXXXXXXXXXXX 日常会話で話す時 XXXXXXXXXXXXXXX と書きたいです。 「丁寧に話す時」...
- How to respond to "I hope you are doing well"?
- what is correct? Where are you study? Or Where do you study? Thank you.
- If you are not the correct person, please direct me the correct one. Does this sentence sound nat...
Topic Questions
- You might wanna avoid caffeine when you take a medicine. It might be effective on medicine in a b...
- I prefer additive-free food. Is it natural?
- Hello :-) Do you understand what I want to say from the following sentence? "Don't be shy, bec...
- Howʼs the word “hyped” used in American English?
- Basically, students enter school after they are informed of school rules, educational policy and...
Newest Questions
- Can I borrow that book when you’ve finished with it? Can I borrow that book when you finish with...
- "Everyone shall have the right to freedom of expression." What has the opposite meaning of thi...
- “It gets monotonous doing the same work all the time.” ‒ Is this the appropriate way to add “mo...
- “Be my girlfriend.” sounds rude?
- Is "allowed to" necessarily associated with asking and then being allowed? What if I need a word ...
Previous question/ Next question