A few tricky JS questions.
What is Flask? Flask is a micro web framework written using Python language, it uses Jinja for templating. Flask is very easy to get started with few lines of code. Installing Flask Create a folder where you want to have this app(Example: D:\flaskwebapp). Open the terminal window and CD to the created folder, run
React minimal is a simple boilerplate code to get started with React JS development using ES6. This boilerplate code is using Babel to transpile the ES 6 code to ES 5 and WebPack for bundling. Tools used: ES 6 for better modularity and component based approaches. Babel to convert the ES 6 code. Webpack
It’s very easy to configure Python as a CGI script using XAMPP server. To configure Python as CGI, follow the below steps. Open your apache configuration file Search for: this line AddHandler cgi-script .cgi .pl .asp add .py extension at the end of this line (AddHandler cgi-script .cgi .pl .asp .py) Restart your apache server
The comma operator will execute the series of expressions and returns the last one. Let’s look at the below functions “print_hello()”, “print_world()” and “print_js()”. View the code on Gist. This code:
var output = (print_hello(),print_world(),print_js());
will execute all the three functions and returns the value of “print_js()” to the variable output.