Skip to main content

Building your Fist JavaScript Application!



JavaScript is what is called a Client-side Scripting Language. That means that it is a computer programming language that runs inside an Internet browser (a browser is also known as a Web client because it connects to a Web server to download pages).

The way JavaScript works is interesting. Inside a normal Web page you place some JavaScript code . When the browser loads the page, the browser has a built-in interpreter that reads the JavaScript code it finds in the page and runs it.

Web page designers use JavaScript in many different ways. One of the most common is to do field validation in a form. Many Web sites gather information from users in online forms, and JavaScript can help validate entries. For example, the programmer might validate that a person's age entered into a form falls between 1 and 120. Another way that web page designers use JavaScript is to create calculators.

Now its time to built your own javascript calculator!
The following code represents a simple Fahrenheit to Celsius converter using JavaScript.

Click here to Read full artcile and get the source code for this simple calculator application

Getting the magic done!

  1. Copy and paste the HTML coding whihc you see from the above link, to the notepad
  2. Go to Files > Save As

  3. Select All Files > and type the following name

  4. Calculator.html > Save it in your Desktop! (.html is very important!)

  5. Go to your Desktop, now you will see a Webpage known as Calculator, Double-Click, Wow! thats It! your calculator is up and running!

You just wrote your First JavaScript Application, now go to the code and try to undastand what actually happened! Hope to see you with some more tips on JavaScrpt! Keep Visiting >>Windhu Blog>>


Comments

Popular posts from this blog

Google dialogflow - How to train a chatbot to answer questions related to your office and how to make it better than just a Q&A bot?

  First lets look how to do it the basic way. To train a conversational AI chatbot for answering office-related queries using Dialogflow, you will need to follow these steps: Create a new agent in Dialogflow. Collect a dataset of office-related queries and their corresponding answers. This dataset can be obtained through various means, such as scraping websites, conducting surveys, or manually creating a dataset. Create intents in Dialogflow for the queries in your dataset. An intent represents a user's intention, such as asking for office hours or requesting a vacation day. Add training phrases to each intent, which are examples of how a user might ask the question. Provide responses for each intent, which will be the chatbot's answer to the user's query. Test the chatbot using the "Try it now" feature in Dialogflow. Once the chatbot is working well, you can deploy it to a platform of your choice, such as a website or mobile app. However, if you follow the basic ...

What if we combine Scrum and DevOps?

To understand how an agile project management methodology like scrum and the DevOps mindset work together, let's look into an arbitrary software development team called the dream team. I will tell you how they use scrum with their DevOps practices like a small story so that it wouldn't feel like you are trying to learn these concepts by reading an article.  The dream team was tasked with building an online bookstore. Their vision was to create a platform where readers could easily browse and buy books. In the team, there was a Product Owner, a Scrum Master, a UI/UX designer, a couple of developers, and a database engineer. They started their journey with a meeting led by the Product Owner, who had a clear idea of the features needed for this platform. This list of features, known as the product backlog, included user authentication, a book database, a search function, a shopping cart, and a payment system. The Product Owner, the Scrum Master, and the rest of the team then held ...

“The crazy dual booting…! Aren’t there an easy way???” what about Virtual PC?

You have always wanted to learn many Operating systems, probably other than windows, but your concern is the pain taking dual booting process, where you install windows and Linux on the same machine or even multiple windows OS when it comes to learning and getting ready for certificate exams like MCSE and so forth. So here is the solution for that! I am talking about Virtual PC, referred as hardware virtual machine, a Software application that is built to work as a virtual PC so that you can install multiple operating systems on the same computer without formatting the hard disk and without making any damage to the actual system. That’s not all; you can even work on different Operating systems simultaneously. Sounds good? Let’s see what we have to do to make this as real as you might imagine. Getting handy with a Virtual PC Software application. First thing you need to do is getting a virtual PC software and there are two good products out there that I recommend, one is VMware and anot...