This file contains 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
var character = { | |
firstName: "Tyrion", | |
lastName: "Lannister", | |
job: "Hand Of The Queen", | |
siblings: ["Cersei Lannister", "Jaime Lannister"] | |
}; | |
// For the following output | |
//'Tyrion Lannister is the Hand Of The Queen and his siblings are Cersei Lannister & Jaime Lannister' | |
// We do something like this |
This file contains 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
function sortObjByValue(list){ | |
var sortedObj = {} | |
Object.keys(list) | |
.map(key => [key, list[key]]) | |
.sort((a,b) => a[1] > b[1] ? 1 : a[1] < b[1] ? -1 : 0) | |
.forEach(data => sortedObj[data[0]] = data[1]); | |
return sortedObj; | |
} | |
// Example |
This file contains 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
{ | |
"status":"ok", | |
"status_message":"Query was successful", | |
"data":{ | |
"movie_count":9019, | |
"limit":50, | |
"page_number":1, | |
"movies":[ | |
{ | |
"id":9380, |
This file contains 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
const path = require("path"); | |
const webpack = require("webpack"); | |
const HTMLGen = require("html-webpack-plugin"); | |
module.exports = { | |
mode: "development", | |
entry: "./src/index.js", | |
output: { | |
path: path.resolve(__dirname, "dist"), | |
filename: "[name].bundle.js", |
This file contains 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
const path = require("path"); | |
const webpack = require("webpack"); | |
const HTMLGen = require("html-webpack-plugin"); | |
module.exports = { | |
mode: "development", | |
entry: "./src/index.js", | |
output: { | |
path: path.resolve(__dirname, "dist"), | |
filename: "[name].bundle.js", |
This file contains 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
const path = require("path"); | |
const webpack = require("webpack"); | |
const HTMLGen = require("html-webpack-plugin"); | |
module.exports = { | |
mode: "development", | |
entry: "./src/index.js", | |
output: { | |
path: path.resolve(__dirname, "dist"), | |
filename: "[name].bundle.js", |
This file contains 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
const path = require("path"); | |
const webpack = require("webpack"); | |
const HTMLGen = require("html-webpack-plugin"); | |
module.exports = { | |
mode: "development", | |
entry: "./src/index.js", | |
output: { | |
path: path.resolve(__dirname, "dist"), | |
filename: "[name].bundle.js", |
This file contains 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
const path = require("path"); | |
const webpack = require("webpack"); | |
const HTMLGen = require("html-webpack-plugin"); | |
module.exports = { | |
mode: "development", | |
entry: "./src/index.js", | |
output: { | |
path: path.resolve(__dirname, "dist"), | |
filename: "[name].bundle.js", |
This file contains 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
{ | |
"info": { | |
"title": "Git Commands Level 1", | |
"description": "This quiz tests your basic knowledge of Git commands.", | |
"tags": ["git"] | |
}, | |
"questions": [ | |
{ | |
"question": "Which command is used to check the state of your local repository since your last commit?", | |
"options": ["git check", "git status", "git commit", "git diff"], |
This file contains 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
const path = require("path"); | |
const webpack = require("webpack"); | |
const HTMLGen = require("html-webpack-plugin"); | |
module.exports = { | |
mode: "development", | |
entry: "./src/index.js", | |
output: { | |
path: path.resolve(__dirname, "dist"), | |
filename: "[name].bundle.js", |
OlderNewer