Posts

Showing posts from 2019

How to Use JavaScript to Do Calculation and Make Decisions in Your Website???…

How to Use JavaScript to Do Calculation and Make Decisions in Your Website???… Now you know that how to store data in JavaScript program, now it’s time to do make some mathematical operations and have fun with it. As usual in your school days you did math operations like addition, subtraction, multiplication, division, in programming they all work same and we call them operators. The combination of at least two operands and an operator make an expression. These expressions have some defined order of evaluation, which tells which expression should have to be evaluated first. An easy way to remember the order of a evaluation using a mnemonic, PEMDAS (Parenthesis, Express, Multiplication, Division, Addition, Subtraction) which tells parenthesis are first to evaluate then expression within it then multiply, division, addition and then at last subtraction operator is evaluated. 22.3 / 11 / 12 ∗ 15.33 ( 12 + 15 ) − 2.567 22.3 / 11 / 12 * 15.33 (12 +15) - 2.56

How HTML Forms Works with JavaScript and Optimize Your Productivity with JQuery

Image
How HTML Forms Works with JavaScript and Optimize Your Productivity with JQuery No webpage can be complete without having a source of adding interactions and letting users send information to the database for the purpose of solving problems using programs on a webpage. That is some client-side processing. The DOM model forms consists elements that creates interface for your webpage or application and we tie events to these elements to perform actions we desired. These interface elements inside HTML form using tag. So what are these interface elements HTML? They are the ones that can receive events and add interactivity to the page as discussed in our previous article includes, text box radio buttons and check-boxes etc. is a way of receiving information from the user like ordering a shoes from an online store, providing destination for your ride, find shortest distance between two locations, a group of people for our soccer match, finding a lottery winner using

How to Use Events to Create Interactions in HTML Websites with JavaScript

How to Use Events to Create Interactions in HTML Websites with JavaScript Have you ever imagined a web-page that doesn’t offer any interaction? it would felt like uninteresting and not useful at all. While browsing you actually perform some kind of actions by clicking, pointing to a button, refreshing a page, dragging/dropping and etc. etc. Interaction give you controls to make changes to a page, like filling up a form to sign up, choosing desired meal for an order, getting or sending information to a web-page, and much more. Let’s take a look on how these interactions are made possible in a web-page for HTML elements using JavaScript. Events allow us to create interactions between elements and user in a web-page. These interactions include, clicking on a button, entering text, filling up a survey and switching picture in a gallery automatically. HTML elements from button, text-box, selection-box, check-box, radio buttons, text area, images, links, forms all ar

Solve Real-world Problems with JavaScript Objects, Methods and Properties

Image
Solve Real-world Problems with JavaScript Objects, Methods and Properties You might suspect that how JavaScript correspond to real world problems and the answer lies in objects, methods and properties, they help us solve real-world problems. Let’s assume a person as an object which can see, hear, eat and walk etc. we call them function / methods of an object. How far the person can see, how loud can hear and how much can eat, properties define for an object. As an example, a child eats less than an adult, so defining properties for each object will help us differentiate between objects. We will take a quick look how we create and use objects, their methods and properties. Most common objects / reference data-types built-in to JavaScript are Arrays, Date, Math and String. The basic purpose of an object is to not just create a data container but facilitate with methods and properties to do additional work on the data depending on requirement of the purpose. They giv

Your First step into JS

Your First step into JS Have you ever imagined a web-page that doesn’t offer any interaction? it would felt like uninteresting and not useful at all. While browsing you actually perform some kind of actions by clicking, pointing to a button, refreshing a page, dragging/dropping and etc. etc. Interaction give you controls to make changes to a page, like filling up a form to sign up, choosing desired meal for an order, getting or sending information to a web-page, and much more. Let’s take a look on how these interactions are made possible in a web-page for HTML elements using JavaScript. Events allow us to create interactions between elements and user in a web-page. These interactions include, clicking on a button, entering text, filling up a survey and switching picture in a gallery automatically. Now the question comes out, how these events are performed? Before that you must know what HTML elements your web-page consists of and which element can receive events.