Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question-15 correct explanation #801

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

swkarimi
Copy link

It's true that JavaScript is dynamically typed languages, but the reason for type coercion is that JavaScript is weakly typed languages.

In dynamically typed languages, you don't need to explicitly specify the type of a variable. Instead, the interpreter or runtime engine figures it out, and variables can hold different types of data at different times.

In weakly typed languages, the language tries to make sense of operations even when the types of the operands don't exactly match, often converting one type to another automatically. it allows implicit type conversions (type coercion) between different data types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant