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 {app} = require('electron'), | |
{BrowserWindow} = require('electron'); | |
app.on('ready', () => { | |
//Your main code will be here | |
const mainWindow = new BrowserWindow({ | |
width: 800, | |
height: 600 | |
}); | |
//Load the content |
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 app = require('electron').app, | |
BrowserWindow = require('electron').BrowserWindow; | |
app.on('ready', function() { | |
//Your main code will be here | |
var mainWindow = new BrowserWindow({ | |
width: 800, | |
height: 600 | |
}); | |
//Load the content |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Basic JavaScript</title> | |
</head> | |
<body> | |
<h1>Basic JavaScript with Zonayed Ahmed</h1> | |
<p>This course is made to teach the basics of JavaScript</p> | |
<script src="script.js"></script> |
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
<!-- saved from url=(0096)file:///C:/Users/Zonayed%20Ahmed/AppData/Roaming/Skype/My%20Skype%20Received%20Files/index2.html --> | |
<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> | |
<title>Product Select</title> | |
<link rel="stylesheet" href="./Product Select_files/bootstrap.min.css"> | |
<!-- jQuery library --> | |
<script src="./Product Select_files/jquery.min.js.download"></script> | |
<!-- Latest compiled JavaScript --> | |
<script src="./Product Select_files/bootstrap.min.js.download"></script> | |
</head> |
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
<html> | |
<head> | |
<title>Product Select</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
<!-- jQuery library --> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
<!-- Latest compiled JavaScript --> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> | |
</head> |
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 callMyName(name, callback) { | |
var myAge = 20; | |
callback(myAge); | |
console.log('Is it interesting? Yes it is Mr.' + name); | |
} | |
function hello(age) { | |
console.log('I am passed through argument and my age is: ' + age); | |
} |
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 welcomeMsg(name) { | |
console.log('Welcome Mr. ' + name); | |
return function options(menu) { | |
console.log('Do you like ' + menu + ' Mr. ' + name); | |
} | |
} | |
welcomeMsg('Zonayed Ahmed')('Coffee'); |
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 aFunc = function(name) { | |
console.log('I am Simply a function and my name is ' + name); | |
} | |
var anothervar = aFunc; | |
anothervar('Zonayed Ahmed'); |
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
for(var i = 0; i < 10; i++) { | |
console.log('Go ' + i + ' step'); | |
} |
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 num = 0; | |
while(num < 10) { | |
num = prompt('Enter the number: '); | |
} | |
console.log('Out of the loop'); |