Задача JavaScript
Нужна помощь решить задачу с помощью JavaScript. (10 класс)
Менеджери місцевого кінотеатру попросили вас застосувати JavaScript при написанні нової автоматичної системи, яку вони створюють. Ім необхідно визначити, чи відвідувач може проходити у зал і переглядати фільми із обмеженням PG-12 (12+). Згідно з правилами, якщо комусь виповнилось 12 років, або ж більше, то їм дозволено переглядати фільм. Якщо ж їм не більше 12, але вони у супроводі дорослого (accompanied), то їм також дозволено подивитися фільм. В іншому випадку перегляд буде заборонено.
var age=11;
var accompanied=true;
???
Завершіть цей приклад, використовуючи змінні параметри age та accompanied, щоб визначити чи цьому 11 річному глядачу дозволено переглядати фільм. Змініть параметри (наприклад age на 12, а accompanied на false), перевірте чи ваш код все ще видаватиме правильну відповідь.
-
1650 18 0 Добрий день, допоможу з вирішенням завдання, давайте обговоримо!
-
1407 27 1 1 Добрый день! Работи на полчаса, сделаю прямо сейчас. Решала очень много подобных задач в школе, код напишу с комментариями. Буду рада сотрудничеству!
-
715 22 0 Добрый день, Олег.
Готов помочь с решением задачи.
Буду рад обратной связи.
UPD: Выполнил вашу задачу. готов предоставить решение.
-
323 3 1 Доброго дня, буду радий допомогти.
Роботи на 15 хв звертайтесь)
-
deleted by moderator
-
Current freelance projects in the category Javascript and Typescript
Need a frontend developer / layout designer for a one-time improvement of a website on Magento 2.
283 USD
Website for evaluation: https://copy.eurobrands-shop.de/ Task: fix frontend bugs at the Magento 2 / Amasty theme level: CSS/LESS/JS, mobile, RTL, minicart, language dropdown, layout shift/CLS. Work format: - without local Magento deployment; - work through DevTools + theme… HTML & CSS, Javascript and Typescript ∙ 22 hours 41 minutes back ∙ 35 proposals |
Optimization of Core Web Vitals (OpenCart) for Google PageSpeed — Mobile and PC versionsOrder description: We are looking for an experienced frontend developer/OpenCart specialist to optimize the loading speed of the website (categories and product cards) according to Google Core Web Vitals requirements. About the project: * CMS: OpenCart. * Specifics: The site… Content Management Systems, Javascript and Typescript ∙ 4 days 22 hours back ∙ 23 proposals |
Optimization of WordPress site speed
113 USD
We will send full details in private messages Goal Maximize website loading speed, especially on mobile devices. KPI (mandatory) After the work is completed, the following metrics must be achieved. Mobile Performance 90+ LCP less than 2.2 sec INP less than 200 ms CLS less than… HTML & CSS, Javascript and Typescript ∙ 5 days 17 hours back ∙ 69 proposals |
Looking for an Odoo Developer — a solo developer with experience in Odoo 19 Community Edition.There is a working, well-designed project on Odoo 19 Community — CRM for a Ukrainian hotel, already in production-grade infrastructure. We do not plan to rewrite from scratch. We are looking for one person who will take over the project, maintain the working state, and lead it… Javascript and Typescript, Web Programming ∙ 7 days 19 hours back ∙ 4 proposals |
I am looking for an experienced Full Stack developer to create a SaaS service for online stores.Service idea: The client uploads a link to their product feed (XML or CSV). The service automatically retrieves the products, takes their photos, and creates new advertising images based on ready-made templates: price, discount, logo, promotional tags, etc. There should also be… Javascript and Typescript, Web Programming ∙ 9 days 1 hour back ∙ 88 proposals |