Skip to content

Instantly share code, notes, and snippets.

View UlvacMoscow's full-sized avatar
🎓

Arsenei Abraamyan UlvacMoscow

🎓
  • Moscow
View GitHub Profile
'use strict'
var nameProduct;
var priceProduct;
var saleProduct;
var totalPriceProduct;
var amountProduct;
var companyMoney;
var surrender;
var purchasePriceProduct;
var maxBuyProducts;
'use strict'
// 1
var quantityInStock;
var quantityOfGoodsInTheOrder;
quantityInStock = 500;
quantityOfGoodsInTheOrder = 500;
if (quantityOfGoodsInTheOrder > quantityInStock) {
console.log('На складе нет такого количества товаров')
'use strict'
// 1
var positions = [
'Отвертка ультразвуковая WHO-D',
'Ховерборд Mattel 2016',
'Нейтрализатор FLASH black edition',
'Меч световой FORCE (синий луч)',
'Машина времени DeLorean',
'Репликатор домашний STAR-94',
'Лингвенсор 000-17',
'use strict'
// 1
var quantityInStock;
var quantityOfGoodsInTheOrder;
quantityInStock = 500;
quantityOfGoodsInTheOrder = 500;
if (quantityOfGoodsInTheOrder > quantityInStock) {
console.log('На складе нет такого количества товаров')
'use strict'
// 1
var price;
var taxes = 0;
function update_taxes(offerPrice) {
let taxe = 0.73 * offerPrice;
taxes += taxe;
return console.log(`Налог с продажи 73 % к оплате ${taxes} Q`)
};
'use strict'
var positions = [
'Телепорт бытовой VZHIH-101',
'Отвертка ультразвуковая WHO-D',
'Ховерборд Mattel 2016',
'Нейтрализатор FLASH black edition',
'Меч световой FORCE (синий луч)'
];
'use strict'
//1
function guarantee(yearsGuarantee) {
yearsGuarantee = yearsGuarantee === undefined ? 0 : yearsGuarantee;
if (yearsGuarantee === 1) {
return console.log(`гарантийное обслуживание на ${yearsGuarantee} год будет стоить 1250 Q`);
}
@UlvacMoscow
UlvacMoscow / main.php
Created September 6, 2018 13:39
TestPHP created by Ulvac - https://repl.it/@Ulvac/TestPHP
<?php
/*-------------------------------задание 1--------------------------*/
$books = [
["name" => 'mertvec',
"publishing" => 1901,
"author" => [
"name" => "ivan ivanov",
"email" => "ivan@mail.hell",
@UlvacMoscow
UlvacMoscow / main.php
Created September 6, 2018 14:01
TestPHP created by Ulvac - https://repl.it/@Ulvac/TestPHP
<?php
/*-------------------------------задание 1--------------------------*/
$books = [
["name" => 'mertvec',
"publishing" => 1901,
"author" => [
"name" => "ivan ivanov",
"email" => "ivan@mail.hell",
@UlvacMoscow
UlvacMoscow / main.php
Created September 6, 2018 14:02
TestPHP created by Ulvac - https://repl.it/@Ulvac/TestPHP
<?php
/*-------------------------------задание 1--------------------------*/
$books = [
["name" => 'mertvec',
"publishing" => 1901,
"author" => [
"name" => "ivan ivanov",
"email" => "ivan@mail.hell",