Racket vs JavaScript

Evaluation of Definitions area

In Javascript, the console does not print anything for evaluated expressions in the definitions area.

In Racket, the interactions area evaluates each expession.

Note: If expressions are entered manually, into the REPL, then expressions are evaluated in both languages.

The result of an assignment

In javascript the result of an assignment is the value of the assigned expression

var x = 10;
x = 20
// 20

In Racket the evaluation of an assignment is void.

(define x 10)
(set! x 20)