Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add Solution for 'What is the Difference Between innerHTML and innerText?' #4

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

Merged
Varunyadavgithub merged 3 commits into Varunyadavgithub:main from Hunterdii:main
Jan 12, 2025

Conversation

Copy link
Contributor

@Hunterdii Hunterdii commented Jan 12, 2025

Pull Request Template

Thank you for contributing to the JavaScript Interview Preparation Guide! Please ensure the following before submitting your pull request:

📋 What did you do?

  • Added a new detailed solution under the JavaScript category:
    "What is the difference between innerHTML and innerText?"
    The explanation includes:
    • Definitions and key features of both innerHTML and innerText.
    • A comparison table highlighting their differences.
    • Practical use cases for when to use each.
    • Security considerations.
    • Examples to make the explanation clear and beginner-friendly.

🔧 How to test your changes?

  • Steps to test the new addition:
    1. Navigate to the relevant section of the JavaScript Interview Preparation Guide.
    2. Verify that the question "What is the difference between innerHTML and innerText?" is listed.
    3. Check that the explanation is clear, formatted correctly, and free from typos or grammatical errors.
    4. Ensure all provided examples are accurate and run correctly in a JavaScript environment.

✅ What are the expected results?

  • The new question and its explanation appear under the appropriate category in the guide.
  • Readers can easily understand the difference between innerHTML and innerText with clear examples and practical insights.
  • The content adheres to the formatting and clarity standards of the guide.

📝 Checklist

  • I have read the CONTRIBUTING.md guidelines.
  • My changes are relevant to the issue I am addressing.
  • I have added my question to the correct category (Easy, Medium, Hard).
  • I have provided a clear and beginner-friendly explanation for the added question.
  • I have tested the content for formatting and clarity.
  • I have ensured there are no typos or grammatical errors.

💬 Additional Notes (Optional)

  • None at the moment.

Thanks again for contributing and helping freshers prepare better for JavaScript interviews! 🎯🚀

@Varunyadavgithub Varunyadavgithub merged commit df7dd22 into Varunyadavgithub:main Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@Varunyadavgithub Varunyadavgithub Varunyadavgithub approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /