rzubov-devpro / crm-js-learning Goto Github PK
View Code? Open in Web Editor NEWCRM JavaScript learning
CRM JavaScript learning
Написать функцию getShip, которая будет принимать 1 аргумент name.
Функция должна возвращать(return) обьект, содержащий следующие свойства:
{
type: 'master',
isEngaged:false,
capacity: 1200,
engage: engage,
stop:stop,
},
{
type: 'slave',
isEngaged:false,
capacity: 500,
engage: engage,
stop:stop,
}
-- функиця *engage* каждого двигателя должна менять свойство *isEngaged* на true и уменьшать показатель *capacity* на 100 для master и на 50 для slave. Функция должна выводить сообщение "%engine type% engine successfully started", сообщение должно быть выведено с помощью console.log
-- функция *stop* каждого двигателя должна менять свойство *isEngaged* на false и возвращать *capacity* в исходные значения. Функция должна выводить сообщение "%engine type% engine successfully stopped", сообщение должно быть выведено с помощью console.log
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.