You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In JavaScript, we might use `=` to *define* our variables and provide aliases. The above equation defines the following:
84
+
<!-- x := 2kj -->
84
85
85
-
```js
86
-
var x =2* k * j
87
-
```
86
+
In JavaScript, we might use `var` to *define* our variables and provide aliases:
88
87
89
88
```js
90
-
var k = x / (2* j)
91
-
```
92
-
93
-
```js
94
-
var j = x / (2* k)
89
+
var x =2* k * j
95
90
```
96
91
97
92
However, this is mutable, and only takes a snapshot of the values at that time. Some languages have pre-processor `#define` statements, which are closer to a mathematical *define*.
98
93
99
-
A more accurate representation in JavaScript (ES6) might look a bit like this:
94
+
A more accurate *define* in JavaScript (ES6) might look a bit like this:
100
95
101
96
```js
102
97
constf= (k, j) =>2* k * j
103
98
```
104
99
105
-
<!--
100
+
The following, on the other hand, represents equality:
The `≅` symbol is for [*congruence*](https://en.wikipedia.org/wiki/Congruence_%28geometry%29). For example, here the line segment AB is congruent with the segment CD.
104
+
<!-- x = 2kj -->
111
105
112
-

106
+
The above equation might be interpreted in code as an [assertion](https://developer.mozilla.org/en-US/docs/Web/API/console/assert):
0 commit comments