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
| const path = require('path'), | |
| AssetsPlugin = require('assets-webpack-plugin'), | |
| HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| module.exports = { | |
| devtool: 'inline-source-map', | |
| entry: './client/index.js', | |
| output: { | |
| filename: '[name].bundle.js', | |
| path: path.resolve(__dirname, 'build/client'), |
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
| var eventsNotifs = new Notification(); | |
| console.log(eventsNotifs.notifs); // Output: A, B, C | |
| eventsNotifs.markAllNotifsRead(); // Mark all notification as read |
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
| var Notification = function () { | |
| this.notifs = ['A', 'B', 'C'] | |
| this.readNotifs = ['B'] | |
| this.isPublic = false | |
| } | |
| Notification.prototype = { | |
| markNotifsRead: function() { | |
| //Mark notification read | |
| } |
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
| function Notification() { | |
| this.notifs = ['A', 'B', 'C'] | |
| this.readNotifs = ['B'] | |
| this.isPublic = false | |
| } |
NewerOlder