/    Sign up×
Community /Pin to ProfileBookmark

I am trying to make…

a javascript program of a couculater for school.
Like just with plus, minus, division, subraction

How would i do it?

(i don’t want the actual program just HOW to do it
plus i am new the this and i am only 12…13 next month)

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@ray326Jan 11.2004 — Wow, that's quite an adventurous project! I'm not sure where to start with the "how" so I'll just tell you some things you need to know to get started.

  • 1. You need to know how a web page is constructed; things like it has a head section and a body section.


  • 2. You need to know about forms, buttons, text boxes and using the buttons' onclick handlers (Javascript functions that are called when the buttons are pressed).


  • 3. All the "guts" of the calculator will go into a Javascript <script> section in the head and all the visible stuff will go into a <form> in the body.


  • If that's too simple or not what you're looking for just keep posting till we get it right. ?
    Copy linkTweet thisAlerts:
    @aommasterJan 12.2004 — Yeah, it's not very easy to actually MAKE your own calculator, the link above gives some scripts that you can just copy and paste into the HTML of the webpage. It's the easiest, fastest and the best way to do it, in my opinion!
    ×

    Success!

    Help @RavenMist spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.7,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...