Commit 8c83cfa7 authored by thatneat's avatar thatneat Committed by GitHub

`square` -> `cube` to avoid aliasing

This makes for a clearer & more convincing demo since `square` was already defined on the Python side.
parent 79c97f8d
......@@ -162,16 +162,16 @@ Likewise, you can use Javascript objects from Python.
%% js
// javascript
function square(x) {
return x*x;
function cube(x) {
return x*x*x;
}
%% md
To call this function from Python...
%% code {"language":"py"}
from js import square
square(4)
from js import cube
cube(4)
%% md
## Exceptions
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment