<commit_before>---
layout: post
title: JavaScript Strikes Again
date: {}
categories: 
  - web
  - javascript
tags: 
  - web
  - javascript
  - html
  - firefox
  - chrome
  - internet explorer
  - featured
image: /assets/images/rails.jpg
summary: Explicit Object Property Declarations
comments: true
published: true
---

Today I discovered a discrepancy  with my JavaScript code and because it was working in Firefox I assumed it was
also working in Internet Explorer/Chrome as well.

See the following example:
{% highlight js %}
var
	firstName = 'John',
	lastName = 'Smith',
	phoneNumber = '123-123-1234',
	myArray[] = {};
	
	myArray.push({ firstName, lastName, phoneNumber });<commit_msg>changed myObject to myArray<commit_after>---
layout: post
title: JavaScript Strikes Again
date: {}
categories: 
  - web
  - javascript
tags: 
  - web
  - javascript
  - html
  - firefox
  - chrome
  - internet explorer
  - featured
image: /assets/images/rails.jpg
summary: Explicit Object Property Declarations
comments: true
published: true
---


Today I discovered a discrepancy  with my JavaScript code and because it was working in Firefox I assumed it was
also working in Internet Explorer/Chrome as well.

See the following example:
{% highlight js %}
var
	firstName = 'John',
	lastName = 'Smith',
	phoneNumber = '123-123-1234',
	myArray[] = {};
	
	myArray.push({ firstName, lastName, phoneNumber });
{'fraction_non_alphanumeric': 0.09735146743020759, 'fraction_numerical': 0.014316392269148175, 'mean_word_length': 3.644518272425249, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3220792', 'n_tokens_mistral': 459, 'n_tokens_neox': 401, 'n_words': 155}