if and if else statements in javascript

Control Statements in JavaScript | Use of If Else in JavaScript

Control Statements in JavaScript | Use of If Else in JavaScript

Today in this article I will tell you a very useful topic of JavaScript. This is the initial starting of JavaScript which you must learn. Here you will get information about how to use control statements in JavaScript. Mostly here you will get that how you can use if else control statements in JavaScript.

Do you want to learn JavaScript?

Do you want to become a successful web developer?

How to use if else control statements in JavaScript?

If all these above questions having in your mind then you are at right place. Here you will get right information.

If you want to boost your JavaScript programming language than you should buy this book which is given below.

Control Statements in JavaScript

  • JavaScript offers almost the same control statements as we have in C language.
    • If, if else
    • Switch
    • While
    • Dowhile
    • For
    • For in

In this article you will learn if and if else statements. Here you will get that how to use if condition and how to use else condition?

Use of if and if else conditions in JavaScript

If(condition){

                                //code here

                                }

If(condition){

                                //code here

                                }

Else{

                //code here

                }

Example:

<!DOCTYPE html>

<html>

<head>

	<title>If Else Statements</title>

</head>

<body>

<script type="text/javascript">

	var x=7;

	if(x>0){

		document.write(x+" is a positive number.");

	}

	</script>

<br><br>

	<script type="text/javascript">
var y=-25;
	if(y>=0){

		document.write(y+" is a positive number.");

	}

	else{

		document.write(y+" is a negative number.");

	}

</script>




</body>

</html>

Output of if and if else control statements:

basics of javascript

Basics of JavaScript | Use of JavaScript with HTML File

Basics of JavaScript | Use of JavaScript with HTML File

 

 

Do you want to learn Java Script?

Do you want to start JavaScript from basics?

Do you want easy to learn JavaScript?

You can make easy to learn JavaScript by this book. I will recommend you to buy this book to learn JavaScript.

You should also check these articles to learn JavaScript which are given below.

Introduction of JavaScript

Best Way to write JavaScript Code for HTML file

basics of javascript

If you have these questions in your mind then you are in right place. Here I will share my own thought and knowledge of JavaScript. In this article, we will start with the basics of JavaScript. First of all, we should know that these key points about JavaScript.

  • JavaScript is a programming language while HTML and CSS are not programming languages. We declare that what should show on a webpage like image, heading, paragraph etc. But HTML cannot take decisions. Thus HTML is not a programming language. And CSS is used for only decorating like border, background color, text color, text style etc. While JavaScript is a programming language. It can take decisions.
  • The statements of JavaScript are separated by semicolons.
  • JavaScript statements are composed of: Values, Operators, Expression, Keywords and Comments.

What are the Literals in JavaScript?

Absolute constants are called  literals.

  • 32.1 (Number)
  • 35 (Number)
  • “Hello” (String)

Literals are different from variables. Here we talk about absolute constants.

JavaScript Variables

  • Variables are used to store data values.
  • The var keyword is used to declare variables.

Ex.: var x=5;

Note: Here is not any garbage collection

JavaScript Operators

Operators are used to manipulate data and give a data as result.

  • 20-5
  • 3*6
  • 54/2
  • a=2

JavaScript Expressions

An expression is a combination of values, variables, and operators, which computes to a value.

A=25+14*21

Keywords in JavaScript

  • JavaScript has many keywords. As you saw above that var is a keyword.
  • As of now there are 63 keywords in JS.

Comments in JavaScript

  • Code after double slashes // or between /* and */ is treated as a comment.
  • Comments are ignored, and will not be executed.

Identifier Naming Rules

  • In JavaScript the first character must be a letter, an underscore (_), or a dollar sign ($).
  • Subsequent characters may be letters, digits, underscores or dollar signs.

Conclusion

In this article you read about Basics of JavaScript. You read JavaScript Literals, JavaScript operators, JavaScript Expressions, JavaScript Keywords, JavaScript Comments and Identifier naming rules. Thank you for reading this article till the end. I hope you love this article. If you love this article then you should show your love in the comment section below. And if you have any questions in your mind then you should write it on the comment section below.

Boost your JavaScript skills by this book.

picture of how to become a web developer

Best Tips to Become a Successful Web Developer

Best Tips to Become a Successful Web Developer

picture of how to become a web developer

Today in this article, we will talk about web development. Many times I face this question from people that what are the skills required to become a web developer? They want to become a web developer and also want to learn useful skills to become a web developer. Are you having also these questions like this?

 

How to become a web developer?

What are the skills required to become a web developer?

How to start to learn to become a successful web developer?

How to make money by web development?

If you have also these questions in your mind then you are at right place. Here I will share my own thoughts about this topic. I hope you will love these words. For a good result you need to read this article till the end.

Start from HTML

picture to start web development with html

You need to start from the beginning. To become a web developer, you need to start from HTML. HTML is the basic key in web design and development. Most of the time people say that they know about HTML. But I suggest them that they should revise HTML basics. Because HTML is a skeleton of a web page. Full body is based on HTML. But if we talk about design in a web page. Then it comes by CSS (Cascading Style Sheet). You can learn HTML from click here.

Go to Design a Web Page

picture of css and graphics design

After HTML you need to design a web page. The designing comes by CSS. If you want to do that your web page looks like awesome then you need to use CSS with HTML. CSS used for giving margin, fill colors, place an element in right place etc. But if you want to become an extraordinary web developer then CSS is not enough for you. Because a website is like a painting or a canvas. Graphics design is the best thing in web design. Graphics design plays a very important role in web design. Graphics Design ensoul on the web page. If a thing does not look beautiful then it cannot attract customers. So you should learn graphic design. This is a very important part to become a successful web developer. To learn CSS click here.

Automation Part in Web Design

picture of learn JavaScript

After CSS and Graphic Design, we go to automation. If you will use some extra features in your web page like a slider, movements etc. then you need to learn JavaScript. So I suggest you that you should learn JavaScript after CSS. JavaScript enhances your impression at the front of your customer. Because automation looks good on a web page. To learn JavaScript Click Here.

After learn these skills (HTML, CSS, JavaScript), you can build a static website easily. And if you want to optimize your work then the solution is given below.

Optimization of Work

If you want to optimize your work with less code. Example you need to build many websites and you don’t want to do a lot of code. Then you should learn Bootstrap. Bootstrap is a platform where you will get HTML, CSS and JavaScript merged template. It is a setup library of HTML, CSS, and JavaScript. Where suppose if you want to make a header of the webpage then you need to do import some code and that’s why you need to learn bootstrap. So if you want optimization in your web development skills and want to create a lot of websites in minimum time then you should learn Bootstrap. Bootstrap is also a very important part to become a successful web developer.

Dynamic Websites

picture of php and database

Above you read about the static website. But now we will talk about dynamic websites. So if you want to build a dynamic website and also want to become a successful web developer then you should learn PHP or Mongo DB or other database skills. If you have these skills then you can make a lot of websites with much functionality. You can make login forms, client management system, store a query, make database etc.

After these all skills you called a full stack web developer. So to become a successful web developer you need to learn HTML, CSS, Graphics Design, JavaScript, PHP etc. After these skill you can easily make a stunning websites. After these skills a question arise by people that can we use wordpress. So read continue below.

Use of WordPress To Become a Web Developer

 

I saw that many people who don’t know briefly about HTML, CSS, JavaScript, and PHP they jump to WordPress. And this is the biggest mistake in their web developer’s career. At least you need to learn PHP. They use plugins in their websites to enhance the quality of web page. But if a technical mistake arises in the website as of the client requirement then you are stuck there. And there your quality will be compromised. If you want to become a high skill web developer then you need to learn custom wordpress not plugin dependent.

Conclusion

So in this article, we learn that, what are the requirements to become a web developer? So you need to start from beginning with HTML then you should learn CSS and graphics designing. And then you should learn JavaScript to enhance your web page quality. After these skills you can make a static websites. And if you want to get more then you should learn PHP, Mongo DB etc. to make Dynamic Websites.

So these are my thoughts about how to become a successful web developer? I hope you love this article. What are your thoughts about Web Development suggest me in the comment section below? Thank you for reading this article till the end.

Picture of Summer Training in Roorkee

Best Company for Summer Training in Roorkee

Best Company for Summer Training in Roorkee

In this article, you will get information regarding Summer Training in Roorkee. An engineering student searches a training company during vacations. There is two type of big vacations available for complete their training. First one is winter vacations and second is summer vacations. So here we talk about training during summer vacations. And this training called as Summer Training. And if you want to do Summer Training in Roorkee then you should keep reading this article. Here you can get some interesting points which you should consider which searching a company for Summer Training in Roorkee.

 

Picture of Summer Training in Roorkee

Some Important Points for Students Regarding Training in Roorkee

Here some important points are given below which you should consider during your training period.

  • If you are a student in the first year or second year then you should focus on a particular domain of your field. You should get training from the initial level of your domain. Because this is very important that your base should be strong. And this training will help you to become a strong personality in your domain.

  • If you are a student of the third year or fourth year then you should focus on industrial level training. Because you need to be ready for work in industries. This industrial level training will be also helpful in your placement. Infect your training decides your placement.
  • During every training period, you should focus on your training subject. And you should keep research on the internet a lot regarding your particular domain. Because this research will help you to solve any problem in your work.
  • You should definitely complete a good project. A good project will help you to understand the problems and you will learn how to find the solution of problems.

  • Live projects are a lot helpful for a successful engineer. If you have a chance to work on live projects then you should work on it. And you should give your best result on that live project. Live projects help you to achieve good placement in your college and other places.

Some Helpful Words for Search a company for Summer Training in Roorkee

When you search for a company to complete your Summer Training in Roorkee then you should consider some words. These some important and helpful words are given below.

  • You should choose a well-recognized training company to complete your Summer Training in Roorkee. Many other training companies also offer different types of attractions. But you should consider a well-recognized training company. The training company should be old.
  • The trainer should be well-experienced. Because well-experienced trainers easily understand the problems of yours. And they provide an accurate solution to that problem. And remember that the oldest company has well-experienced trainers.

  • The training company should provide good placements in well reputed MNC’s. There you have a chance to get placement in MNC’s.
  • The training company should have development cell. Because the development cell has live projects. And there you can work on a live project with the development team.
  • The training company should provide job oriented training certificate. Because a certification is very important at placement.

 

Company that You Should Join for Summer Training in Roorkee

Summer Training in Roorkee

Cetpa Infotech is the best choice to complete your Summer Training in Roorkee. Cetpa Infotech Pvt. Ltd. fulfills all those requirements which are given above. If you are an engineering student of any branch (Mechanical, Electrical, Electronics, Computer Science and Civil) then you should join Insergo Technologies. This is the one of the best company to complete your Summer Training in Roorkee. Cetpa Infotech Pvt. Ltd. has these silent features which are given below.

  • Cetpa Infotech Pvt. Ltd. is the one of the reputed training company.
  • Cetpa Infotech has the well-experienced trainer to train us in a particular domain. They will help you to complete your summer training successfully.
  • Cetpa Infotech Pvt. Ltd. provides job oriented certification after successfully complete your summer training. This will help you at placement.
  • Cetpa Infotech Pvt. Ltd. provides best placements in MNC’s.
  • Cetpa Infotech has very supportive staff.
  • Cetpa Infotech has also development cell means you have a chance to work on live projects with the development team.
  • Cetpa Infotech Pvt. Ltd. provides free of cost personality development training. This training helps you a lot at placement.
  • You can also clear your doubts after your training periods. The trainer will help you to solve your problems.
  • Cetpa Infotech Pvt. Ltd. provides training in these various time duration.
    • 4 Week Training Programs
    • 6 Week Training Programs
    • 3 Month Training Programs
    • 6 Month Training Programs

Summer Training for Computer Science Engineering

Cetpa Infotech Pvt. Ltd. has summer training programs for Computer Science Engineering. If you want to get Summer Training in Roorkee for Computer Science then you should join Cetpa Infotech Pvt. Ltd. This training company provides these training programs for computer science which are given below.

  • Java
  • Android
  • PHP
  • Python
  • Web Design and Development
  • Dot Net
  • Big Data
  • Cloud Computing
  • Ethical Hacking
  • Digital Marketing Training in Roorkee
  • AWS Training
  • C/C++ Training in Roorkee

Summer Training for Mechanical and Civil Engineering

Cetpa Infotech Pvt. Ltd. also provides training facilities for mechanical and civil engineers. If you are a student of mechanical or civil engineering and want to gets quality training in a specific domain of your field then you should join Cetpa Infotech. It will help you to make your future bright.

  • Auto Cad Training in Roorkee
  • Solid Works Training
  • CATIA Training
  • ANSYS Training

Summer Training for Electrical and Electronics Engineering

Cetpa Infotech Pvt. Ltd. also provides training for Electrical and Electronics Engineers. You should join Insergo Technologies to achieve good knowledge in your particular domain. Cetpa Infotech Pvt. Ltd. provides these programs for Summer Training in Roorkee.

  • MATLAB Training
  • ARM Microcontroller Training in Roorkee
  • AVR Microcontroller Training in Roorkee
  • IOT Training
  • Embedded System Training
  • Robotics Training

Where is Cetpa Infotech Pvt. Ltd.

This is the address where Cetpa Infotech Pvt. Ltd. situated. The address of Cetpa Infotech is given below. If you want to join Insergo Technologies to complete your Summer Training in Roorkee then you should go to this address.

Head Office of Cetpa Infotech Pvt. Ltd.

#200 Purvawali, 2nd Floor (Opp. Railway Station Ticket Agency)

Railway Road, Above LIC, Ganeshpur

Roorkee, 247667

Call: +91-9219602769

Website: https://www.cetpainfotech.com & https://traininginroorkee.com

You can also join Cetpa Infotech Pvt. Ltd. at Noida. The address of Cetpa Infotech Pvt. Ltd. in Noida is given below.

D-58, Sector-2, Near Red FM

Noida-201301, Uttar Pradesh

Call: +91-9212172602, 0120-4535353

Website: https://www.cetpainfotech.com

Conclusion of Summer Training in Roorkee

So in this article, you got that Cetpa Infotech Pvt. Ltd. is the one of the best company for Summer Training in Roorkee. You also got that how should you search for a training company. And which things you should consider during the search a company. You also get training company for all engineering branches like mechanical, electrical, electronics, computer science and civil. I hope you got that information which you want. If you love this article then you should share your thoughts in the comment section below. And if you have any questions regarding this article then you should write your question in the comment section below. I will try to give the answer to your question.

You should also read these articles

Summer Training in Roorkee

Android Training in Roorkee

Best IELTS Coaching in Sitarganj

Best PTE Coaching in Sitarganj