GithubHelp home page GithubHelp logo

siaiologist / js-functions-parameters-arguments Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anniecannons/js-functions-parameters-arguments

0.0 0.0 0.0 6 KB

JavaScript 94.14% HTML 5.86%

js-functions-parameters-arguments's Introduction

Using Paramters and Arguments in JavaScript

Understanding function inputs

  • Function inputs allow you to accept data or arguments from the outside world (i.e., the code that calls the function) and work with that data inside the function's body. This enables you to make the function more flexible and versatile, as it can perform different tasks based on the values passed as arguments.
    • Arguments are the values or expressions that you pass to the function when you call it. Functions can accept zero or more arguments, depending on how they are defined.
    • In JavaScript, a parameter in a function is a special variable that acts as a placeholder for values that are passed to the function when it is called. Parameters allow you to accept input and work with that input inside the function's code. They serve as a mechanism to pass values from the function call to the function's body.
function functionName(parameter1, parameter2, ...) {
 // Function body - code that uses the parameters
}

functionName('value', 'value');

Prep

  1. Connect your js file to your HTML file
  2. Open your code in the browser and open your console

Activities

  1. In the js file, complete the list of exercises.

js-functions-parameters-arguments's People

Contributors

lhack47 avatar abbreviatedman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.