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

The Illusion of Quality: When Excellence Becomes Mere Paperwork

In the pursuit of excellence, organizations often turn to ISO certifications as a symbol of their commitment to quality management. However, it's not uncommon to witness a stark contrast between a company that genuinely strives for quality and one that merely focuses on satisfying auditors during certification periods. This disparity is rooted in the misconception that documentation alone can create a culture of quality.  ISO Certifications  ISO certifications, such as ISO 9001:2015, establish a framework for quality management systems, emphasizing processes, inputs, outputs, and metrics. While these standards provide guidelines for organizations, their true value lies in fostering a culture of continuous improvement and customer satisfaction. Unfortunately, some companies perceive certification as a mere paperwork exercise rather than a catalyst for achieving true quality. The Audit Illusion During certification audits, organizations may prioritize matching inputs and outputs...

The Role of Research in Progress and Innovation

  The history of human progress is a testament to the impact of research for the sake of research. Visionaries like Galileo, Isaac Newton, and Albert Einstein have expanded our understanding of the universe by fearlessly pursuing knowledge and sharing their discoveries through academic publications. The scientific method, which promotes the validation of any claim through verification, is a cornerstone of the research process and has driven transformative innovations. Consider the rise of smart cities, which integrate cutting-edge technologies to enhance urban life. Between 2018 and 2021, Singapore produced more than 1,500 research papers on smart cities, while Amsterdam published more than 950 such papers. These contributions demonstrate the critical role research plays in realizing the potential of smart city initiatives. Where ever, there was an attempt to redefine the norm, it was the 'research' that made that happen. Bitcoin, a revolutionary digital currency, emerged from ...

How the "push it" culture creates real "down fall".

In the world of organizational culture, the prevalence of a "push it" mentality often serves as a glaring indicator of more profound issues. It signifies more than just a commitment to excellence; it frequently represents the single most significant indication of an isolated, blame-oriented, and ultimately toxic culture.  In environments where the "push it" mantra prevails, collaboration becomes an afterthought, and leaders, whether consciously or inadvertently, exacerbate this toxicity by embracing this phrase. In this article, I will dive into the perils of the "push it" culture, and I will try to shed some light. If you have been hearing the phrase "you have to push it" or "I expect you to push it harder", that means you are already working in a counterproductive environment.  The Toxicity of "Push It" The "push it" culture, seemingly rooted in the pursuit of results, often conceals deeper organizational maladies....