DEV Community

Cover image for What is JavaScript?

What is JavaScript?

CodeByte on February 03, 2024

INTRODUCTION JavaScript is a popular and versatile programming language that powers the dynamic and interactive features of web pages. In this art...
Collapse
 
citronbrick profile image
CitronBrick • Edited

Brenden Eich originally wanted to put Scheme (a Lisp variant) on the browser, but was made to adopt a Java like syntax.

This is what Scheme looks like:

(define areaOfCircle(radius)
    (* 3.14 radius radius))

'using Pythagoras theorem
(define hypoteneuse(side1 side2) 
    (sqrt (+ (* side1 side1) (* side2 side2))))
Enter fullscreen mode Exit fullscreen mode