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

thanks in advance
Answers
Share this question
Read more comments

  • English (US)

  • Spanish (Colombia)
  • Spanish (Mexico)
[News] Hey you! The one learning a language!

Share this question
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
Recommended Questions
Topic Questions
Newest Questions
Previous question/ Next question