Lists
Learning language
Translation language
noun · A2 · often · mainly US

argument

argument

Meaning of argument

English

a value that you give to a function when you call it

Русский

значение, которое передают функции при вызове

argument

Pronunciation

British English
/ˈɑːɡjumənt/
American English
/ˈɑrɡjəmənt/

argument with Russian translation

Сочетания и примеры со словом argument

Типичные сочетания сгруппированы по смыслу. Зелёные слова можно открыть отдельно, чтобы продолжить изучение.

24 сочетания

Передача при вызове

Passing arguments
pass an argument
передать аргумент

If you pass an empty string as an argument, you get an empty result.

Если передать пустую строку в качестве аргумента, получится пустой результат.

the first argument
первый аргумент

Pass the file name as the first argument.

Передайте имя файла первым аргументом.

  • a function argumentаргумент функции
  • the second argumentвторой аргумент
  • multiple argumentsнесколько аргументов
  • an argument listсписок аргументов
  • accept an argumentпринимать аргумент
  • supply an argumentуказать аргумент
  • use null as an argumentиспользовать null в качестве аргумента

Виды аргументов

Argument types
a keyword argument
именованный аргумент

Use a keyword argument to make the call easier to read.

Используйте именованный аргумент, чтобы вызов было легче читать.

an optional argument
необязательный аргумент

The optional argument is not needed for this example.

Для этого примера необязательный аргумент не нужен.

  • a positional argumentпозиционный аргумент
  • a required argumentобязательный аргумент
  • a string argumentстроковый аргумент
  • a numeric argumentчисловой аргумент
  • a boolean argumentлогический аргумент
  • a callback argumentфункция обратного вызова в качестве аргумента

Порядок и проверка

Order and validation
an invalid argument
недопустимый аргумент

An invalid argument causes the function to throw an exception.

Недопустимый аргумент приводит к тому, что функция выдаёт исключение.

a missing argument
отсутствующий аргумент

The error message says there is a missing argument.

В сообщении об ошибке говорится, что один аргумент не передан.

  • validate an argumentпроверить корректность аргумента
  • check the argument typeпроверить тип аргумента
  • the number of argumentsчисло аргументов
  • too many argumentsслишком много аргументов
  • argument orderпорядок аргументов

Примеры предложений с argument

  1. 1

    This function accepts multiple arguments.

    Эта функция принимает несколько аргументов.

  2. 2

    The second argument controls the output format.

    Второй аргумент задаёт формат вывода.

  3. 3

    A required argument must be supplied on every call.

    Обязательный аргумент нужно передавать при каждом вызове.

  4. 4

    The string argument contains the search term.

    Строковый аргумент содержит поисковый запрос.

  5. 5

    Validate each argument before processing the request.

    Проверьте корректность каждого аргумента, прежде чем обрабатывать запрос.

  6. 6

    We passed too many arguments to the constructor.

    Мы передали конструктору слишком много аргументов.

  7. 7

    Check the argument type before calling this method.

    Проверьте тип аргумента, прежде чем вызывать этот метод.

  8. 8
    use null as an argument

    You can use null as an argument if there is no value yet.

    Если значения ещё нет, можно использовать null в качестве аргумента.

  9. 9
    accept an argument

    The callback accepts the response object as its only argument.

    Функция обратного вызова принимает объект ответа как единственный аргумент.

  10. 10

    The boolean argument enables detailed logging.

    Логический аргумент включает подробное журналирование.

  11. 11
    a callback argument

    Use a callback argument to handle completion.

    Передайте функцию обратного вызова в качестве аргумента, чтобы обработать завершение.

  12. 12

    Changing the argument order changes the result.

    Изменение порядка аргументов меняет результат.

argument usage examples

🇬🇧English→🇷🇺Russian

The function takes two arguments.

Функция принимает два аргумента.

🇬🇧English→🇷🇺Russian

This function needs one argument.

Этой функции нужен один аргумент.

argument synonyms

Related word breakdowns

What's the difference between argument and parameter

Advanced: broader words

P
🇬🇧English
parameter

The variable in the function definition, not the passed value.

often

ENThe function has two parameters: name and age.

Learn by topic

Related words and lists for argument

Questions about this word

What does argument mean?

a value that you give to a function when you call it

How do you pronounce argument?

argument is pronounced [ˈɑːɡjumənt].

How is argument used in a sentence?

Функция принимает два аргумента. Translation: The function takes two arguments.

Is argument part of Programming vocabulary?

Yes, argument can be learned in the Programming topic. This semantic link helps build related word lists and topic-based practice.

Is argument part of Work English vocabulary?

Yes, argument can be learned in the Work English topic. This semantic link helps build related word lists and topic-based practice.

Audio practiceExamplesSmart repeats

Learn argument in your vocabulary

Add this word to practice, repeat it with audio, examples and your own word lists.

Your cookie choice

We use necessary cookies to operate the site. Analytics and marketing technologies are enabled only with your permission. Cookies Policy