Post as many JavaScript errors as you can by breaking the provided code. Try to come up with explanation of the error you get. Prizes for the weirdest error.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Babel Quickstart</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.21.1/babel.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-dom.js"></script> | |
| </head> | |
| <body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MyThing extends React.Component{ | |
| increment() { | |
| store.dispatch({ type: 'increment' }); | |
| } | |
| decrement() { | |
| store.dispatch({ type: 'decrement' }); | |
| } | |
| render() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MyThing extends React.Component{ | |
| render() { | |
| return <div>Hello, world!</div>; | |
| } | |
| } | |
| ReactDOM.render(<MyThing/>, document.getElementById('root')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Babel Quickstart</title> | |
| <script src="https://unpkg.com/babel-standalone@6/babel.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-dom.js"></script> | |
| </head> | |
| <body> |
Please paste your errors as comments into this gist. Paste both your code and the error message.
- Clone source code for your project and put it under /var/www
- Install pm2 on your server:
sudo npm install pm2 -g - Enable proxy module for Apache:
sudo a2enmod proxy_http - Start your Node.js server program using pm2:
pm2 start backend.js, now you can monitor your server processes viapm2 list - Create an Apache site configuration
.conffile under/etc/apache2/sites-available. Let say it'smysite.confIt should look something like:
Enter a python error message, and the example code that caused that error.