Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 963175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:38:03+00:00 2026-05-16T01:38:03+00:00

As a complete Javascript novice I’m challenged by some simple concentps. When I’m doing

  • 0

As a complete Javascript novice I’m challenged by some simple concentps.

When I’m doing my javascript I’ll often see stuff like this

function name(e) {

    if(e.KeyCode) { 
        ....
    }
}

What does doing this accomplish? What’s the e all about?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T01:38:03+00:00Added an answer on May 16, 2026 at 1:38 am

    Seems like the function is to be called by the browser (or whatever) when firing a specific event (in this case I guess it’s keyboard related; e stands for event or event data).

    So once fired, the caller will pass the event structure as a parameter (copied to e). JavaScript won’t define any local/global variables just for the one specific call so KeyCode won’t be defined but e contains that variable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a complete JavaScript noob. I am using this right now: $(function() { $(#tabs).tabs({
I use rails 3.0.3 A javascript auto complete needs data like this { query:'Li',
having some trouble trying to figure this out, complete novice when it come to
I found a great plug-in for doing Auto-Complete with Javascript called AutoSuggest thanks to
I have this basic auto complete JavaScript that works well, but you need to
So I'm trying to complete some javascript and having trouble codeing links to update
I'm a complete newbie to JavaScript trying to understand simple things.... Please look at
I am a complete jQuery and Javascript noob trying to get a very simple
I'm a complete novice, looking for instructions on implementing javascript. I am attempting to
I am complete novice at regex and Javascript. I have the following problem: need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.