crop_rotate
Run
<!DOCTYPE html> <html> <body> <h1> Default Value</h1> <p>Setting a default value to a function parameter.</p> <script> function myFunction(x) { x = 10; return x; } document.write(myFunction()); </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxib2R5Pg0KPGgxPiBEZWZhdWx0IFZhbHVlPC9oMT4NCjxwPlNldHRpbmcgYSBkZWZhdWx0IHZhbHVlIHRvIGEgZnVuY3Rpb24gcGFyYW1ldGVyLjwvcD4NCg0KPHNjcmlwdD4NCmZ1bmN0aW9uIG15RnVuY3Rpb24oeCkgew0KICB4ID0gMTA7DQogIHJldHVybiB4Ow0KfQ0KZG9jdW1lbnQud3JpdGUobXlGdW5jdGlvbigpKTsNCjwvc2NyaXB0Pg0KDQo8L2JvZHk+DQo8L2h0bWw+