pg edited

This commit is contained in:
Dan Onoshko 2014-09-04 12:13:32 +07:00
parent 2c354e5f9f
commit 6a6c23d368

View File

@ -94,15 +94,14 @@
main(){ main(){
// Unary operators // Unary operators
// Two variants of `isset` operator. Which is better? // `isset` operator.
bool _seted = true, _empty; bool _seted = true, _empty;
console.log("`_seted` is", _seted?? ? "seted" : "empty"); console.log("`_seted` is", _seted? ? "seted" : "empty");
console.log("`_empty` is", isset _empty ? "seted" : "empty");
// `clone` operator // `clone` operator
Array _first = [584], _second = clone _first; Array _first = [584], _second = clone _first;
_first.push(404); _first.push(404);
console.log("`_first`:",_first,"`_second`:",_second); console.log("`_first`:", _first, "`_second`:", _second);
// Binary operators // Binary operators
// `pow` operator // `pow` operator
@ -218,8 +217,8 @@ main();</textarea>
<label for="main_binding">`main` binding</label> <label for="main_binding">`main` binding</label>
<input type="checkbox" id="compressed" onclick="changeClass()"> <input type="checkbox" id="compressed" onclick="changeClass()">
<label for="compressed">compressed</label> <label for="compressed">compressed</label>
<span id="lenstat"></span>
<span id="version">v0.6.0</span> <span id="version">v0.6.0</span>
<span id="lenstat"></span>
</div> </div>
</body> </body>
<script> <script>