• Skip to primary navigation
  • Skip to content
  • Skip to footer
The Coding Sandbox The Coding Sandbox
  • Home
  • Code Sources
  • Archive
  • Tags
  • About
    Programs and projects written using various programming languages.
    Javascript: Area of A Triangle Photo credit: Pixabay
    ENTPRESTIGIOUS

    ENTPRESTIGIOUS

    The feared, the relentless, the elite.

    • GitHub

    Javascript: Area of A Triangle

    July 22, 2023 less than 1 minute read

    Table of Contents

    • 3CaszbdZYGN4otQD8.js

    The code has been modified slightly and now uploaded to the site.

    Open Link in New Tab

    <— Return Home

    3CaszbdZYGN4otQD8.js

    triArea(3, 2);
    triArea(7, 4);
    triArea(10, 10);
    
    function triArea(base, height) {
    	let area = base * height / 2;
        console.log(area);
    }
    

    <— Return Home

    Tags: javascript, practice

    Categories: Edabit

    Updated: July 22, 2023

    Share on

    Twitter Facebook LinkedIn
    Previous Next

    You may also enjoy

    Javascript Canvas: Drawing Canvas

    July 22, 2023 less than 1 minute read

    The code has been modified slightly and now uploaded to the site.

    Javascript: toBinaryScript

    July 22, 2023 less than 1 minute read

    The code has been modified slightly and now uploaded to the site.

    Javascript: TheObject

    July 22, 2023 less than 1 minute read

    The code has been modified slightly and now uploaded to the site.

    Javascript Edabit Practice: CanvasPractice

    July 22, 2023 less than 1 minute read

    The code has been modified slightly and now uploaded to the site.

    • Follow:
    • GitHub
    • Feed
    Copyright © 2023 NOTORIEX LEGACY. Some Rights Reserved.
    Powered by Jekyll & Minimal Mistakes.
    Custom High Contrast UI v1.06 by NOTORIEX LEGACY.
    Enhanced Code Blocks v0.1 by NOTORIEX LEGACY.

    Extended Pagination v1 for Minimal Mistakes by NOTORIEX LEGACY.
    Custom Header Image v1 for Minimal Mistakes by NOTORIEX LEGACY.
    Custom iframe Styles v1 by NOTORIEX LEGACY.