SEC S19W6 || Data Type and Conditional Statement
SEC S19W6 Participation post
I hope everyone is well and may be waiting for my post. I did less than I hoped this time, but made a start. I have actually learned html and css, but javascript is new to me, it's taking me time. But still some things happen and nothing can be done. Let's see what I have done this time.
Why we Need Conditional Statements
Conditional Statements helps to control the behavior in JavaScript and let the commend run, or not. The pieces of codes can run or not, this is controlled with different conditional statements. Such as "if statement" is very easy to understand and define.
If a condition is true it will let the page print happen and if condition is not true, the page will not print.
Example:
I wrote a command for if statement, before that I added two "variables" a, and b. Both are having a value in number, I applied then this (if condition) which we can see, the document print will work only, if the statement and condition is equal, to the if condition which is if a is greater than b.
As we can see the result is not printed in the page, because the values of a and b was not higher, or smaller, these both were equal.
Now if we do edit, and give a bigger value to a, the result will definitely change, and document will get printed. Here is the result.
I invite miss @suboohi, @rafk, @steemdoctor1 to participate in this contest, and kindly give this post a review.
Now the second statement and one of my favorite statement is if....else. let's see examples.
I started another command in if section that is if. Opened two curly brackets and just wanted to print the document if if is not correct it must be else which is correct. And I lowered down the value of "a". Then what happened, here is the result.
The third Conditional Statement is switch statement I am trying to learn this, it's just the basic of all of Conditional Statements I have shared. Switch statement is little bit tricky to understand and here is an example of it:
The image 8 represents an external html file for the `i1 html` file. In this document I created a calculator, for addition and subtraction etc. you can see in video it's working properly.
The image 7 represents code for Fibonacci Series, then I linked this file with the `i1.html` by Linking the external files I understood this is very much important to have external files set up, but the one which is main file must have proper place for all external files. In the webpage result the external file can be shown as a result, but if proper created. As I used the calculator file directly in `Zone 3` in start, then when I added the list view of 5 Steemians, the calculator went little bit small. ---- I tried very hard to create the average calculation program for students but I am accepting my failure here. I failed to create that external file. All other codes images are uploaded, and that is the first file we created for @kouba01 project, but I missed to publish it as a post, further there were lot of work remaining, so I thought not to submit. Here is the video output results:
The third Conditional Statement is switch statement I am trying to learn this, it's just the basic of all of Conditional Statements I have shared. Switch statement is little bit tricky to understand and here is an example of it:
7 | 8 |
The image 7 represents code for Fibonacci Series, then I linked this file with the `i1.html` by Linking the external files I understood this is very much important to have external files set up, but the one which is main file must have proper place for all external files. In the webpage result the external file can be shown as a result, but if proper created. As I used the calculator file directly in `Zone 3` in start, then when I added the list view of 5 Steemians, the calculator went little bit small. ---- I tried very hard to create the average calculation program for students but I am accepting my failure here. I failed to create that external file. All other codes images are uploaded, and that is the first file we created for @kouba01 project, but I missed to publish it as a post, further there were lot of work remaining, so I thought not to submit. Here is the video output results:
I invite miss @suboohi, @rafk, @steemdoctor1 to participate in this contest, and kindly give this post a review.
Very thankful for your support.
Hey @growwithme how are you? You have really done great efforts for performing all the tasks. I hope you have learnt new things with these tasks. In conditional statements you have explained everything in a good way with your best knowledge.
I have suggestion for you when you write your code mention each section with the comments. It helps to organise the code in a more good way.
And for your good quality video you can record the screen of your laptop or computer. Use some video recording extension in the chrome browser and you will be able to record your screen in a more good way.
It will help to increase the quality of your video.
Best of luck 🤞.
I am very thankful for your kind suggestions brother. I am going to try all these, specially the video recording extension.
You are welcome. I am also using an extension for screen shot as well as for recording.
For screen shot there is a snipping tool in windows maybe in all versions, so I use that.
I also used that.
Thanks for the update.Your work on the Fibonacci series and the calculator looking good yes linking files correctly is important, and it’s okay to have challenges with the average calculation program. Keep going and learning from each step.,wish you success 💖🤗🌸.
I'm thankful for your support
I remember that you are a web developer in past and now hope you remind all the things that you perform in past. Now with the help of this course you perform well in future. Here you presentation is well to reach the criteria of this task question. I hope you perform well in the future. I wish you the best of luck.
Yes, actually the time amount is very much short in these days for me. But I am still trying to go better and with details. I am very thankful for your comment waited for your entry but this week you didn't.
No, I done my entry you can visit. Its too late but I done.