all AI news
JavaScript to Python- a few differences in syntax
July 1, 2023, 10:33 p.m. | megharrison92
DEV Community dev.to
When you are learning a new programming language it can be hard to keep the syntax straight in-between the two languages. Here is a quick reference of some basic differences between JavaScript and Python.
Naming Conventions-
JavaScript uses lowerCamelCase as a naming convention.
Python uses the snake_case as a naming convention.
// JavaScript
aNewCupOfCoffee
# Python
a_new_cup_of_coffee
Declaring variables-
- JavaScript uses const, let, and var to declare variables.
- To declare a variable in Python, it is set to the value- …
codenewbie differences javascript language languages new programming language programming programming language python reference syntax
More from dev.to / DEV Community
Jobs in AI, ML, Big Data
Data Architect
@ University of Texas at Austin | Austin, TX
Data ETL Engineer
@ University of Texas at Austin | Austin, TX
Lead GNSS Data Scientist
@ Lurra Systems | Melbourne
Senior Machine Learning Engineer (MLOps)
@ Promaton | Remote, Europe
Tableau/PowerBI Developer (A.Con)
@ KPMG India | Bengaluru, Karnataka, India
Software Engineer, Backend - Data Platform (Big Data Infra)
@ Benchling | San Francisco, CA