Задача JavaScript
Нужна помощь решить задачу с помощью JavaScript. (10 класс)
Менеджери місцевого кінотеатру попросили вас застосувати JavaScript при написанні нової автоматичної системи, яку вони створюють. Ім необхідно визначити, чи відвідувач може проходити у зал і переглядати фільми із обмеженням PG-12 (12+). Згідно з правилами, якщо комусь виповнилось 12 років, або ж більше, то їм дозволено переглядати фільм. Якщо ж їм не більше 12, але вони у супроводі дорослого (accompanied), то їм також дозволено подивитися фільм. В іншому випадку перегляд буде заборонено.
var age=11;
var accompanied=true;
???
Завершіть цей приклад, використовуючи змінні параметри age та accompanied, щоб визначити чи цьому 11 річному глядачу дозволено переглядати фільм. Змініть параметри (наприклад age на 12, а accompanied на false), перевірте чи ваш код все ще видаватиме правильну відповідь.
-
Добрий день, допоможу з вирішенням завдання, давайте обговоримо!
-
1383 27 1 1 Добрый день! Работи на полчаса, сделаю прямо сейчас. Решала очень много подобных задач в школе, код напишу с комментариями. Буду рада сотрудничеству!
-
715 22 0 Добрый день, Олег.
Готов помочь с решением задачи.
Буду рад обратной связи.
UPD: Выполнил вашу задачу. готов предоставить решение.
-
323 3 1 Доброго дня, буду радий допомогти.
Роботи на 15 хв звертайтесь)
-
deleted by moderator
-
Current freelance projects in the category Javascript and Typescript
Full-stack development — Amazon PPC Dashboard (Stage 1)Need a full-stack developer with experience working with Amazon API to implement Stage 1 of the internal PPC dashboard. The project is real, the data is live, everything is ready to start. Frontend prototype (5 pages, React + TypeScript): WHAT IS ALREADY READY — Frontend… Javascript and Typescript, Web Programming ∙ 9 hours 40 minutes back ∙ 17 proposals |
Development of a photo book and photo frame constructor websiteProject Goal A modern website needs to be developed for ordering photo books, photo frames, and other personalized photo products. The main task of the project is to provide the client with the ability to independently create a ready-made layout of the product directly on the… Javascript and Typescript, Web Programming ∙ 2 days 1 hour back ∙ 90 proposals |
Full-stack developmentNeed a full-stack developer who is free for work and not looking to get rich immediately from this project. This is my test site: readyhome.ge the prototype of which I want to create (not referring to design). In the footer, there is Russian language, fill out the questionnaire… Javascript and Typescript, Web Programming ∙ 2 days 14 hours back ∙ 79 proposals |
Team for a custom marketplace of funeral services.We are looking for a team to launch and develop a custom national marketplace for funeral services. Right away: we are not looking for solo freelancers, juniors, or "website builders." We need a strong product team at the middle+/senior level with real cases in… Javascript and Typescript, Web Programming ∙ 2 days 20 hours back ∙ 25 proposals |
Improvement of the existing Next.js/Supabase project: offers, CRM, analytics, AI chatThere is an active project WatchGenius — a luxury watch analytics platform with a catalog of models, price analytics, external offers, application forms, and an AI chat. The project has already been partially developed. We need not a website from scratch, but an experienced… Javascript and Typescript, Web Programming ∙ 4 days 21 hours back ∙ 55 proposals |