Posts

Image
  Hello  This is the day 14  of #30 days of javascrip coding, at this day  I studied  If Condition  and  i learned that 1-  Very simply put, the course of the code or the final result depends on more than one condition, meaning there will be more than one condition in the code (Condition 1 - Condition 2 - Condition 3). If the first condition is met, it will be taken into account, and if it is not met, in this case we resort to the second condition, and if it is not met We resort to the third condition, and if it is not met, no result will appear because none of the three conditions are met 2- In the first case, I made a condition and asked: Is there a Discount? If I look at the variable of discount, I will find that it is false. If the condition is not met, we will resort to the next condition. 3-  The second case: Is the user from Egypt? If I looked at a variable in country, I would find that it was KSA, not Egypt. Also, the second condition was not met 4-  The third case: Is this per
Image
  Hello  This is the day 13  of #30 days of javascrip coding, at this day  I studied  Comparison Operators  and   i learned that 1- In this lesson, i learned about comparison signs or operators, which have a very important role in the world of conditioning and decision-making. 2- The equal sign (=) is used to assign a specific value to a specific variable 3-  The purpose of the (==) is to compare values to each other, even if their types are different 4-  The (=!) means not Equal and the result appears as true or false 5-  The (===) means a complete match, and the Identical here you are comparing the value and also the data type. and the result appears as true or false 6-  In the case of Identical not or the ( ==! ) The question is whether this value and its type match this value and its type or not  and the result appears as true or false 7-there are another  Comparison Operators such as the  greater than sign ,  the less than sign, t he  greater than or equal sign and  the less than
Image
  Hello  This is the day 12  of #30 days of javascrip coding, at this day  I studied  String Methods  and   i learned that 1-  As we previously learned about Number Methods, today we will learn String Methods 2- The index represents the number for the location or location of each item within the sequence, and the sequence is the sequence of data, meaning that the first code that has the letters inside it is a sequence of data. 3- Each of the elements or data present within this sequence has a number or location. This is specifically the index. The beginning of the Index count is from zero. 4-  After that, the method is called charAt() and it means Position at Character, meaning you give it a specific Position and it will return to you the Character inside this position. 5-  If i want to count the number of elements in a String, i will use something called length, the purpose of which is to count the number of elements in the Sequence. 6-  The method after that is trim(), which in turn
Image
      Hello  This is the day 11  of #30 days of javascrip coding, at this day  I studied the  Math Object  and   i learned that 1-  Just as we talked previously about the Function Number and the properties within it that can be used to deal with numbers, today we will talk about the Object Math, which contains properties or tools that can be used to implement various tasks. 2-The first of these features or tools is round() function, which is mainly intended to round decimal numbers to the nearest whole number based on the number after the sign. 3- There are two other types of tools: the ceil and the floor, and here there is a fundamental difference between them 4- The ceil is an indication of the ceiling, that is, rounding to the largest value, regardless of the number after the decimal point 5- The floor is a reference to the floor, meaning rounding to the smallest value, regardless of the number after the decimal point 6- There are two other types of Math properties, min and max  7- 
Image
      Hello  This is the day 10  of #30 days of javascrip coding, at this day  I studied the  Number Methods  and   i learned that 1-   Very simply, within the Number Function there are methods and properties that I use with this Function to implement a specific procedure or behavior. 2- The purpose of the tostring() function   is to convert a Number to a String and it has two ways of writing 3- tofixed function(2) Its purpose is to show only two decimal numbers instead of showing all five of these decimal numbers. 4- parseint() function The purpose of this method is to analyze the number written in the form of a string and convert it to a number, as the word parse means analysis and the int refers to Integer 5- There is another type of method called parseFloat(). Its purpose is to return numbers that contain fractions as they were 6-  isInteger() function purpose is to perform a check on the code and return the result, whether true or false T hat's all I learned today 
Image
    Hello  This is the day 9  of #30 days of javascrip coding, at this day  I studied the  Type Coercion and number and   i learned that 1-  type  Coercion   is the process of converting data from one type to another while the code runs logically 2-  If there is a situation in which I want to combine the variable A with the variable B  Here the programming language will treat the variable a as a string and the + as a  concatenate  sign  So the result will be in the form of a String 3-  In JavaScript, all numbers are treated with double precision 4- It makes the numbers clearer and easier to understand through underscore sign 5- This is an example of the number million, which means 1 with 6 zeros next to it. The function of Sugar Syntactic is to clarify and facilitate the reading of this number. When the number is written in this way, it is read very easily and is recognized as a million. 6- Also, if you wrote the number million using floating or decimal numbers and wrote  In the end, a
Image
  Hello  This is the day  8 of #30 days of javascrip coding, at this day  I studied the  Arithmetic Operators  i learned that 1-  the  Arithmetic Operators  are symbols for mathematical operations such as addition operation 2- in addition operation Only arithmetic numbers must be collected 3-  in addition operation If we replace the arithmetic numbers with string here, it will not be an arithmetic operation because the + will be treated as a way to  concatenation 4-in Subtraction  operation  If you use texts with numbers  the computer understands that it is a mathematical operation even though it is illogical and there is no room to calculate the result. 5-There are other types of mathematical operations such as:There are other types of arithmetic operations, such as multiplication,  division, Exponentiation  operations 6-There is another type of arithmetic operation called Modulus (Division Remainder) and It is a special case of division T hat's all I learned today