Skip to main content
100%

Arrow Function & Multiple Sentences

✓ Published1🌍 Public
NNita
Last edited Jan 15, 2024
Created on Jan 15, 2024

This example demonstrates a minimal web page that uses JavaScript arrow functions to compute the triple of a given number. The page consists of a single HTML file with embedded CSS styling and a script block. The arrow function `tripple` takes an input, calculates its square, then multiplies that result by the original number to return the cube. The result is logged to the browser console using `console.log()`. The page displays a static "Hello Javascript!" message using standard HTML and CSS, with no external libraries or frameworks involved.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes