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 Staff Engagement Paradox: Forcing the Illusion of Choice

Staff engagement, a concept praised for its ability to motivate employees and cultivate a positive work environment, can sometimes become a double-edged sword.  Initially, the intention behind organizing non-work-related activities, such as futsal competitions, was noble. These endeavours sought to provide employees with opportunities to connect and engage beyond the confines of their workspaces. The vision was to ignite motivation and foster unity. However, somewhere along the way, the true essence of these activities became distorted. The Penalties of Being Human Ironically, in their pursuit of encouraging staff engagement, companies implemented attendance marking systems and penalties for absence or tardiness. What was once voluntary and enjoyable participation has now been replaced by fear-driven coercion. Employees attend these events not out of genuine interest or enjoyment, but out of the dread of being shamed, penalized, or left out. The spirit of choice and voluntary engag...

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....

A National Cybersecurity Agency that could foster real impact.

  In an age where critical infrastructure and information systems are the cornerstones of national security, the role of a National Cybersecurity Agency has never been more crucial. It transcends the physical realm, acting as a digital guardian, safeguarding the nation's most sensitive data and ensuring the smooth operation of vital services. Beyond Reaction: A Proactive Approach The agency's mission extends far beyond simply reacting to cyberattacks. It's a multi-faceted entity with a diverse set of responsibilities: Strategic Vision:  Developing a comprehensive national cybersecurity strategy that aligns with the ever-evolving threat landscape and incorporates best practices from around the globe. Threat Intelligence Powerhouse:  Continuously gathering, analyzing, and disseminating real-time cyber threat intelligence to keep government agencies, businesses, and citizens informed and prepared. Risk Management Partner:  Assisting government entities and critical infr...