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. ...@@ -162,16 +162,16 @@ Likewise, you can use Javascript objects from Python.
%% js %% js
// javascript // javascript
function square(x) { function cube(x) {
return x*x; return x*x*x;
} }
%% md %% md
To call this function from Python... To call this function from Python...
%% code {"language":"py"} %% code {"language":"py"}
from js import square from js import cube
square(4) cube(4)
%% md %% md
## Exceptions ## 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