# vuepress-plugin-interactive-js

使用此插件,您可以通过以下语法同时显示代码和 console.log 结果。

::: javascript

```js
var a = { n: 1 };
var b = a;
a.x = a = { n: 2 };

// 请写出以下输出结果
console.log(a.x);
console.log(b);
```

:::

点击查看 Demo

# Install

yarn add @yemu419/vuepress-plugin-interactive-js -D

# Usage

Write vuepress config

module.exports = {
    plugins: ['@yemu419/interactive-js'],
}

Made with ❤️ by Ahmad Mostafa - @z3by